[FFmpeg-devel] [PATCH] examples/demuxing_decoding: use correct size of video_dst_data
andreas.cadhalpun at googlemail.com
Tue May 12 14:31:38 CEST 2015
On 12.05.2015 00:28, Michael Niedermayer wrote:
> this breaks demuxing_decoding with pixel formats that use more than
> 1 plane
> for example:
> doc/examples/demuxing_decoding lena255.jpg out.raw /dev/null
> Could not find audio stream in input file 'lena255.jpg'
> Input #0, image2, from 'lena255.jpg':
> Duration: 00:00:00.04, start: 0.000000, bitrate: 3124 kb/s
> Stream #0:0: Video: mjpeg, yuvj444p(pc, bt470bg/unknown/unknown), 255x255, 25 tbr, 25 tbn, 25 tbc
> Demuxing video from file 'lena255.jpg' into 'out.raw'
> video_frame n:0 coded_n:0 pts:NOPTS
> Demuxing succeeded.
> Play the output video file with the command:
> ffplay -f rawvideo -pix_fmt yuvj444p -video_size 255x255 out.raw
> but the printed command line for ffplay does not work as the stored
> image is not containing teh chroma planes
I see. Attached is a patch that should fix the warnings without breaking
anything. (It's not exactly beautiful, but it works.)
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 1884 bytes
Desc: not available
More information about the ffmpeg-devel