[FFmpeg-devel] [PATCH] Fixes muxing example when using FFV1 as codec

Andre Anjos andre.dos.anjos at gmail.com
Tue Oct 29 11:25:02 CET 2013


From: Andre Anjos <andre.anjos at idiap.ch>

Hello,

I'm forwarding this patch following a request from the libav-users, by Carl
Eugen Hoyos as described in this thread
(http://ffmpeg.org/pipermail/libav-user/2013-October/005734.html). It fixes the
muxing example to work with ffmpeg-2.x. The example works fine if the codec
is chosen by the format, but fails if one forces the codec (by slightly
changing the program) to be FFV1. According to Paul Mahol, the codec has been
made more strict in ffmpeg-2.x and the bad initialization (lacking width,
height and pixel format) triggers this problem.

To overcome the issue, the height, width and pixel formats for the frame need
to be initialized as proposed by this patch. This patch does not seem to affect
other codecs.

Andre Anjos (1):
  Fixes frame allocation and avoids a bad write when using FFV1 as
    codec

 doc/examples/muxing.c |    3 +++
 1 file changed, 3 insertions(+)

-- 
1.7.10.4



More information about the ffmpeg-devel mailing list