[FFmpeg-devel] [PATCH] ogg_read_packet: forward error code

Nicolas George nicolas.george at normalesup.org
Fri Jun 24 12:14:06 CEST 2011


Hi.

The attached patch does what the subject says. I missed this one two months
ago. Without this patch:

~ $ ltrace ffmpeg -i some_file.ogg -f s16le -y /dev/null |&
  grep av_read_frame | tail -n 2
av_read_frame(0x0228d600, 0x7fff203909e0)        = 0
av_read_frame(0x0228d600, 0x7fff203909e0)        = -5

-5 is AVERROR(EIO)

With this patch:

av_read_frame(0x0211a400, 0x7fff527308b0)        = 0
av_read_frame(0x0211a400, 0x7fff527308b0)        = -541478725

-541478725 is -MKTAG( 'E','O','F',' ').

Regards,

-- 
  Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-ogg_read_packet-forward-error-code.patch
Type: text/x-diff
Size: 1390 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20110624/f819e35f/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20110624/f819e35f/attachment.asc>


More information about the ffmpeg-devel mailing list