From d17d0ec8c2b432f0b680737de0b2aa03f2d4dd8d Mon Sep 17 00:00:00 2001 From: Yusuke Nakamura Date: Tue, 24 Apr 2012 08:51:29 +0900 Subject: mov: support random access point grouping Frames described by this grouping are the starter of a closed or an open GOP. This is useful for open GOP of H.264 stream which is not described by sync sample atom. Signed-off-by: Luca Barbato --- libavformat/isom.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'libavformat/isom.h') diff --git a/libavformat/isom.h b/libavformat/isom.h index a766326082..b191699711 100644 --- a/libavformat/isom.h +++ b/libavformat/isom.h @@ -87,6 +87,11 @@ typedef struct { unsigned flags; } MOVTrackExt; +typedef struct { + unsigned int count; + unsigned int index; +} MOVSbgp; + typedef struct MOVStreamContext { AVIOContext *pb; int ffindex; ///< AVStream index @@ -128,6 +133,8 @@ typedef struct MOVStreamContext { int has_palette; int64_t data_size; int64_t track_end; ///< used for dts generation in fragmented movie files + unsigned int rap_group_count; + MOVSbgp *rap_group; } MOVStreamContext; typedef struct MOVContext { -- cgit v1.2.3