[FFmpeg-devel] lowres flag question

Jai Menon jmenon86
Mon May 25 11:58:21 CEST 2009


Hi,

I'm trying to fix issue 1097 and something seems weird about the
lowres flag. In av_find_stream_info, try_decode_frame is called to
discover codec parameters but the lowres flag is not passed through
(even though "-lowres 1" is passed on the command line). Consequently,
width and height are set to the actual values instead of
w>>lowres,h>>lowres by avcodec_set_dimensions.

The problem is that even though subsequent calls to decode_frame
(through avcodec_decode_video2) compute width and height correctly,
these are not being set correctly in the AVCodecContext. That is, the
output image that lavc expects is still w,h.

Is this a known bug/feature?

-- 
Regards,

Jai



More information about the ffmpeg-devel mailing list