diff options
author | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2008-06-09 07:43:14 +0000 |
---|---|---|
committer | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2008-06-09 07:43:14 +0000 |
commit | 3c6a9f66b9b46a158ce6ddb74637f8298d7ab4da (patch) | |
tree | ead6d4ee57dcb3c85722f7e6d4ddc59b9262b7b8 /libavformat/ffm.h | |
parent | 8983aa337c5f09ef858e1ab73c38b47f1dedd7b0 (diff) | |
download | ffmpeg-3c6a9f66b9b46a158ce6ddb74637f8298d7ab4da.tar.gz |
pass dts and pts through ffm, should fix streaming b frames
Originally committed as revision 13725 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/ffm.h')
-rw-r--r-- | libavformat/ffm.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavformat/ffm.h b/libavformat/ffm.h index c758f9d817..97b7a5c716 100644 --- a/libavformat/ffm.h +++ b/libavformat/ffm.h @@ -29,8 +29,9 @@ #define PACKET_ID 0x666d /* each packet contains frames (which can span several packets */ -#define FRAME_HEADER_SIZE 8 +#define FRAME_HEADER_SIZE 16 #define FLAG_KEY_FRAME 0x01 +#define FLAG_DTS 0x02 enum { READ_HEADER, @@ -41,11 +42,10 @@ typedef struct FFMContext { /* only reading mode */ offset_t write_index, file_size; int read_state; - uint8_t header[FRAME_HEADER_SIZE]; + uint8_t header[FRAME_HEADER_SIZE+4]; /* read and write */ int first_packet; /* true if first packet, needed to set the discontinuity tag */ - int first_frame_in_packet; /* true if first frame in packet, needed to know if PTS information is valid */ int packet_size; int frame_offset; int64_t pts; |