[FFmpeg-devel] [PATCH 1/2] lavf/mux: allow muxing non monotonic timestamps

Michael Niedermayer michaelni at gmx.at
Thu Jan 2 22:24:03 CET 2014


On Tue, Dec 31, 2013 at 10:24:33PM +0100, Lukasz Marek wrote:
> This is required by devices to avoid error when stream is seeked backward.
> 
> Signed-off-by: Lukasz Marek <lukasz.m.luki at gmail.com>
> ---
>  libavformat/avformat.h | 2 ++
>  libavformat/mux.c      | 2 +-
>  2 files changed, 3 insertions(+), 1 deletion(-)
> 
> diff --git a/libavformat/avformat.h b/libavformat/avformat.h
> index 6d719d7..c64a71a 100644
> --- a/libavformat/avformat.h
> +++ b/libavformat/avformat.h
> @@ -377,6 +377,8 @@ typedef struct AVProbeData {
>                                          AVFormatContext.avoid_negative_ts
>                                          */
>  
> +#define AVFMT_TS_ANY       0x80000 /**< Format allows muxing any (non monotonic) timestamps. */

this should have a value close to AVFMT_SEEK_TO_PTS or rather a bigger
value than it has now because if a differnt flag is added to the fork
it will likely have 0x80000 and that could cause ABI compatibility
issues

otherwise this looks ok

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Into a blind darkness they enter who follow after the Ignorance,
they as if into a greater darkness enter who devote themselves
to the Knowledge alone. -- Isha Upanishad
-------------- 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/20140102/f7da6669/attachment.asc>


More information about the ffmpeg-devel mailing list