[FFmpeg-devel] MPEG-4 ASP motion vector clamping correct?

Reimar Döffinger Reimar.Doeffinger at gmx.de
Fri Dec 16 21:45:59 CET 2011

I have a question about mpegvideo_common.h
There is a lot of code like:
av_clip(src_x, -16, s->width);
However on the other hand we have the FF_BUG_EDGE flag that changes
where we start the border extension.
Why shouldn't this be using s->h_edge_pos instead to follow that?
Even more so since I think this is also used for H.263
for which the spec seems quite clear that the decoder should only
ever care about the rounded-up width, not the non-mod16 part.


More information about the ffmpeg-devel mailing list