mirror of
https://github.com/game-stop/veejay.git
synced 2025-12-20 14:50:01 +01:00
bugfixes
git-svn-id: svn://code.dyne.org/veejay/trunk@815 eb8d1916-c9e9-0310-b8de-cf0c9472ead5
This commit is contained in:
@@ -248,12 +248,14 @@ int vj_avcodec_stop( void *encoder , int fmt)
|
||||
{
|
||||
if(!encoder)
|
||||
return 0;
|
||||
#ifdef SUPPORT_READ_DV2
|
||||
if( fmt == CODEC_ID_DVVIDEO )
|
||||
{
|
||||
vj_dv_free_encoder(encoder);
|
||||
encoder = NULL;
|
||||
return 1;
|
||||
}
|
||||
#endif
|
||||
if( fmt == 900 )
|
||||
{
|
||||
return 1;
|
||||
@@ -268,6 +270,7 @@ void *vj_avcodec_start( editlist *el, int encoder )
|
||||
{
|
||||
int codec_id = vj_avcodec_find_codec( encoder );
|
||||
void *ee = NULL;
|
||||
#ifdef SUPPORT_READ_DV2
|
||||
if(codec_id == CODEC_ID_DVVIDEO )
|
||||
{
|
||||
if(!is_dv_resolution(el->video_width, el->video_height ))
|
||||
@@ -281,7 +284,10 @@ void *vj_avcodec_start( editlist *el, int encoder )
|
||||
return ee;
|
||||
}
|
||||
}
|
||||
|
||||
#else
|
||||
if( codec_id == CODEC_ID_DVVIDEO )
|
||||
return NULL;
|
||||
#endif
|
||||
ee = vj_avcodec_new_encoder( codec_id, el , encoder );
|
||||
if(!ee)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user