[FFmpeg-devel] [PATCH] ffplay: fix odd YUV width by cropping the video

Marton Balint cus at passwd.hu
Tue Sep 4 20:59:50 CEST 2012

On Tue, 4 Sep 2012, Nicolas George wrote:

> L'octidi 18 fructidor, an CCXX, Carl Eugen Hoyos a écrit :
>> This introduces a dependency on the crop filter.
>> Is it possible to continue if the filter was not
>> initialized successfully?
>> If not, crop has to be added to ffplay_select in
>> configure.
> As is, the filter is necessary. It seems quite easy to only add it if
> "(is->video_st->codec->width & 1) || (is->video_st->codec->height & 1)":
> ffplay would then be able to play even-sized videos like before without
> crop.

It's not that easy, because some filters in the filer chain can still 
change the dimensions to an odd number. Probably easier if we just select 
the crop filter as a requirement. I'll post a patch soon.


More information about the ffmpeg-devel mailing list