[FFmpeg-devel] first_dts set to RELATIVE_TS_BASE in vorbis audio

Michael Niedermayer michaelni at gmx.at
Thu Apr 12 11:55:53 CEST 2012


On Wed, Apr 11, 2012 at 11:50:17AM -0700, Dale Curtis wrote:
> We're seeing this in Chrome as well. Essentially first_dts ==
> RELATIVE_TS_BASE until the first av_read_frame(). This is
> trivially reproducible with any ogg file and printing first_dts
> after avformat_find_stream_info():
> 
> av_register_all();
> avformat_open_input(&ctx, argv[1], NULL, NULL);
> avformat_find_stream_info(ctx, NULL);
> printf("first_dts: %ld\n", ctx->streams[0]->first_dts);
> ...
> 
> 
> >>first_dts: 9223090561878065023
> 
> 
> Is the proper response here to consider first_dts to be (ts -
> RELATIVE_TS_BASE) when is_relative(ts) is true?

that may work but first_dts really shouldnt be set to a widely
different timestamp than the actual first dts.
Do you still see this issue with git master ?

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Good people do not need laws to tell them to act responsibly, while bad
people will find a way around the laws. -- Plato
-------------- 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/20120412/682de198/attachment.asc>


More information about the ffmpeg-devel mailing list