summaryrefslogtreecommitdiff
path: root/libavformat/rtpenc.h
diff options
context:
space:
mode:
authorLuca Abeni <lucabe72@email.it>2010-06-16 12:59:47 +0000
committerLuca Abeni <lucabe72@email.it>2010-06-16 12:59:47 +0000
commit8b889b34802dd03115dc1bbadbbe1f415ae8c861 (patch)
tree8cd8ac387d63ebfeaab39da5612dba793b6e1224 /libavformat/rtpenc.h
parented00fe49d7aec2d7899b8f24ef0f5a7d590293f8 (diff)
If the video stream is H.264 with MP4 syntax, store the NAL lenght size in
the RTP muxer context (it will be used later for splitting frames in NALs) Originally committed as revision 23625 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/rtpenc.h')
-rw-r--r--libavformat/rtpenc.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/libavformat/rtpenc.h b/libavformat/rtpenc.h
index 57101601cd..95e70c140c 100644
--- a/libavformat/rtpenc.h
+++ b/libavformat/rtpenc.h
@@ -50,6 +50,12 @@ struct RTPMuxContext {
uint8_t *buf_ptr;
int max_frames_per_packet;
+
+ /**
+ * Number of bytes used for H.264 NAL length, if the MP4 syntax is used
+ * (1, 2 or 4)
+ */
+ int nal_length_size;
};
typedef struct RTPMuxContext RTPMuxContext;