summaryrefslogtreecommitdiff
path: root/libavformat/rtpenc.h
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2012-12-10 01:10:42 +0200
committerMartin Storsjö <martin@martin.st>2012-12-16 21:32:13 +0200
commit65e053271a98f7acf3ef6b412998cfcb44a8eef8 (patch)
tree7015094870c8fa06cdacb328c783e7cc876cc677 /libavformat/rtpenc.h
parenta421bbfe83ad55eff335fc19bbacc1e9fecfc3cf (diff)
downloadffmpeg-65e053271a98f7acf3ef6b412998cfcb44a8eef8.tar.gz
rtpenc_vp8: Include the picture number in VP8 packets
This makes it easier for receivers to decide what to do if data is lost. Refactor calculating the max payload size, to avoid hardcoding the header size in too many places, reducing the number of lines that have to be touched if the header is adjusted further. Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavformat/rtpenc.h')
-rw-r--r--libavformat/rtpenc.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/rtpenc.h b/libavformat/rtpenc.h
index 369b413e9d..5fd0b9ca64 100644
--- a/libavformat/rtpenc.h
+++ b/libavformat/rtpenc.h
@@ -59,6 +59,8 @@ struct RTPMuxContext {
int nal_length_size;
int flags;
+
+ unsigned int frame_count;
};
typedef struct RTPMuxContext RTPMuxContext;