|
|
@ -2191,6 +2191,9 @@ static int stream_component_open(VideoState *is, int stream_index) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
codec = avcodec_find_decoder(avctx->codec_id); |
|
|
|
codec = avcodec_find_decoder(avctx->codec_id); |
|
|
|
|
|
|
|
if (!codec) |
|
|
|
|
|
|
|
return -1; |
|
|
|
|
|
|
|
|
|
|
|
avctx->debug_mv = debug_mv; |
|
|
|
avctx->debug_mv = debug_mv; |
|
|
|
avctx->debug = debug; |
|
|
|
avctx->debug = debug; |
|
|
|
avctx->workaround_bugs = workaround_bugs; |
|
|
|
avctx->workaround_bugs = workaround_bugs; |
|
|
@ -2210,8 +2213,7 @@ static int stream_component_open(VideoState *is, int stream_index) |
|
|
|
if(codec->capabilities & CODEC_CAP_DR1) |
|
|
|
if(codec->capabilities & CODEC_CAP_DR1) |
|
|
|
avctx->flags |= CODEC_FLAG_EMU_EDGE; |
|
|
|
avctx->flags |= CODEC_FLAG_EMU_EDGE; |
|
|
|
|
|
|
|
|
|
|
|
if (!codec || |
|
|
|
if (avcodec_open(avctx, codec) < 0) |
|
|
|
avcodec_open(avctx, codec) < 0) |
|
|
|
|
|
|
|
return -1; |
|
|
|
return -1; |
|
|
|
|
|
|
|
|
|
|
|
/* prepare audio output */ |
|
|
|
/* prepare audio output */ |
|
|
|