[FFmpeg-devel] [RFC] How to fix DR+lavfi+vflip crash

Michael Niedermayer michaelni
Sat Dec 11 17:40:15 CET 2010

On Sat, Dec 11, 2010 at 02:49:54PM +0100, Michael Niedermayer wrote:
> > If you can show a detailed solution which is simpler than this then I
> > can try to implement it, otherwise I'll stick with this one.
> in avfilter_start_frame()
> the linesize case can be added here:
>  /* prepare to copy the picture if it has insufficient permissions */
>     if ((dst->min_perms & picref->perms) != dst->min_perms ||
>          dst->rej_perms & picref->perms) {
> in vflips
> get_video_buffer()
> check if negative linesizes are permitted and if not return a buffer from
> default allocation

> or just skip the buffer flip

that should have been skip if linesize>=0 of the given buffer

Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

I am the wisest man alive, for I know one thing, and that is that I know
nothing. -- Socrates
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20101211/33251adf/attachment.pgp>

More information about the ffmpeg-devel mailing list