[Libav-user] Does the image2 demuxer work with a custom AVIOContext?
Paul B Mahol
onemda at gmail.com
Wed Feb 19 22:02:51 CET 2014
On 2/19/14, Carl Eugen Hoyos <cehoyos at ag.or.at> wrote:
> Carl Eugen Hoyos <cehoyos at ...> writes:
>> Robert Krueger <krueger <at> ...> writes:
>> > cat ~/samples/fate/dpx/lighthouse_rgb48.dpx | ./ffmpeg
>> > -f image2pipe -vcodec dpx -i - ~/tmp/fromdpx_pipe2.png
>> > [dpx <at> 0x7fcb21822600] Overread buffer. Invalid header?
>> The image is cut in the middle
> Iiuc, the parser reads the file size from the file
> header while the decoder calculates the (minimal
> possible) file size. The value that the parser
> reads from the file header is too small.
> I suspect the bug can be fixed by reusing the logic
> to determine the image size also in the parser or
> by ignoring the file size outputting everything until
> the next magic marker.
There is no bug in parser, bug is in dpx file which do not
conform to the specification.
FFmpeg dpx encoder is fine.
More information about the Libav-user