diff options
author | Martin Storsjö <martin@martin.st> | 2015-02-23 21:35:48 +0200 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2015-02-24 16:22:21 +0200 |
commit | b7a4c319fda22aa91ce29692d728ec6103b514f6 (patch) | |
tree | 8e4275f0ffa0d3821f573d1492e2bcc3daf703d9 /libavformat/rtpdec.h | |
parent | b651c9139e1ab222d5aab9151dcd7d6e40e49885 (diff) | |
download | ffmpeg-b7a4c319fda22aa91ce29692d728ec6103b514f6.tar.gz |
rtpdec: Allow setting the need_parsing field in RTPDynamicProtocolHandler
This allows getting rid of quite a bit of boilerplate in depacketizers.
The default value (initializing need_parsing to 0, aka
AVSTREAM_PARSE_NONE) is the same as it is initialized to by default
in AVStream.
Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavformat/rtpdec.h')
-rw-r--r-- | libavformat/rtpdec.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/rtpdec.h b/libavformat/rtpdec.h index 9f1a475ba0..e015942c90 100644 --- a/libavformat/rtpdec.h +++ b/libavformat/rtpdec.h @@ -116,6 +116,7 @@ struct RTPDynamicProtocolHandler { const char *enc_name; enum AVMediaType codec_type; enum AVCodecID codec_id; + enum AVStreamParseType need_parsing; int static_payload_id; /* 0 means no payload id is set. 0 is a valid * payload ID (PCMU), too, but that format doesn't * require any custom depacketization code. */ |