ffmpeg: avoid direct access to lowres use av_codec_g/set_lowres()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2013-10-03 16:59:11 +02:00
parent e57dba0d52
commit 4d5d905eed
1 changed files with 1 additions and 1 deletions

View File

@ -592,7 +592,7 @@ static void add_input_streams(OptionsContext *o, AVFormatContext *ic)
case AVMEDIA_TYPE_VIDEO:
if(!ist->dec)
ist->dec = avcodec_find_decoder(dec->codec_id);
if (dec->lowres) {
if (av_codec_get_lowres(dec)) {
dec->flags |= CODEC_FLAG_EMU_EDGE;
}