[FFmpeg-devel] [BUG] 2/2 Pad/crop fails for non YUVplanar pixformats

Víctor Paesa wzrlpy
Mon May 14 23:33:50 CEST 2007


And padding PNGs fails too:

$ ffmpeg -i gradient.png -padright 100 -f image2 out.png
FFmpeg version SVN-r9025, Copyright (c) 2000-2007 Fabrice Bellard, et al.
  configuration: --disable-static --enable-shared --enable-gpl
--enable-swscaler --enable-pthreads --enable-liba52 --enable-avisynth
--enable-libdts --enable-libfaac --enable-libfaad --enable-libgsm
--enable-libmp3lame --enable-libnut --enable-libogg --enable-libtheora
--enable-libvorbis --enable-x264 --enable-xvid --enable-libamr_nb
--enable-libamr_wb --cpu=prescott
  libavutil version: 49.4.0
  libavcodec version: 51.40.4
  libavformat version: 51.12.1
  built on May 14 2007 23:19:00, gcc: 3.4.4 (cygming special, gdc 0.12,
using dmd 0.125)
Input #0, image2, from 'gradient.png':
  Duration: 00:00:00.0, start: 0.000000, bitrate: N/A
  Stream #0.0: Video: png, rgb24, 720x576, 25.00 fps(r)
Output #0, image2, to 'out.png':
  Stream #0.0: Video: png, rgb24, 820x576, q=2-31, 200 kb/s, 25.00 fps(c)
Stream mapping:
  Stream #0.0 -> #0.0
Press [q] to stop encoding
frame=    1 fps=  0 q=0.0 Lsize=       0kB time=0.0 bitrate=   0.0kbits/s
video:1kB audio:0kB global headers:0kB muxing overhead -100.000000%

but there is no error message, what happens is that the result PNG is
completely black.

This second patch attached checks the return code from av_picture_pad()
in ffmpeg.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: ffmpeg.av_picture_pad.retval.1.diff
Type: application/octet-stream
Size: 773 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20070514/018a7c6c/attachment.obj>

More information about the ffmpeg-devel mailing list