[FFmpeg-cvslog] r11513 - trunk/libavformat/raw.c
Baptiste Coudurier
baptiste.coudurier
Thu Jan 31 12:09:19 CET 2008
Hi
michael wrote:
> Author: michael
> Date: Sat Jan 12 01:24:10 2008
> New Revision: 11513
>
> Log:
> Set pts/dts in raw (yuv,rgb,pcm) demuxers.
>
>
> Modified:
> trunk/libavformat/raw.c
>
> Modified: trunk/libavformat/raw.c
> ==============================================================================
> --- trunk/libavformat/raw.c (original)
> +++ trunk/libavformat/raw.c Sat Jan 12 01:24:10 2008
>
> [...]
>
> @@ -119,6 +119,12 @@ static int raw_read_packet(AVFormatConte
> /* note: we need to modify the packet size here to handle the last
> packet */
> pkt->size = ret;
> +
> + bps= av_get_bits_per_sample(s->streams[0]->codec->codec_id);
> + assert(bps); // if false there IS a bug elsewhere (NOT in this function)
> + pkt->dts=
> + pkt->pts= pkt->pos*8 / (bps * s->streams[0]->codec->channels);
> +
> return ret;
> }
>
This commit cause floating point exception during seek tests because
channels is 0 for mulaw and alaw files (.ul, .al).
Channels is 0 because those files have no headers and value cannot be
computed.
tests/data/b-libav.ul
/usr/local/src/ffmpeg/svn2/tests/seek_test.sh: line 13: 24570 Floating
point exceptiontests/seek_test $i >>$logfile
tests/data/b-libav.al
/usr/local/src/ffmpeg/svn2/tests/seek_test.sh: line 13: 24505 Floating
point exceptiontests/seek_test $i >>$logfile
Im not sure how to fix this correctly though.
--
Baptiste COUDURIER GnuPG Key Id: 0x5C1ABAAA
SMARTJOG S.A. http://www.smartjog.com
Key fingerprint 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA
Phone: +33 1 49966312
More information about the ffmpeg-cvslog
mailing list