diff options
author | Martin Storsjö <martin@martin.st> | 2012-02-14 11:10:52 +0200 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2012-02-14 12:23:07 +0200 |
commit | df6050188c5bfa4dd7eed62a662506187810249b (patch) | |
tree | d66396d2edc48b0926918e78a622b113b940b784 /libavformat | |
parent | 1c77a5307fcaba02c82071d333290423faba03d4 (diff) | |
download | ffmpeg-streaming-df6050188c5bfa4dd7eed62a662506187810249b.zip ffmpeg-streaming-df6050188c5bfa4dd7eed62a662506187810249b.tar.gz |
movenc: Use defines instead of hardcoded numbers for RTCP types
Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/movenchint.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/movenchint.c b/libavformat/movenchint.c index c2025c0..f3eb0f2 100644 --- a/libavformat/movenchint.c +++ b/libavformat/movenchint.c @@ -24,6 +24,7 @@ #include "internal.h" #include "rtpenc_chain.h" #include "avio_internal.h" +#include "rtp.h" int ff_mov_init_hinting(AVFormatContext *s, int index, int src_index) { @@ -332,7 +333,7 @@ static int write_hint_packets(AVIOContext *out, const uint8_t *data, size -= 4; if (packet_len > size || packet_len <= 12) break; - if (data[1] >= 200 && data[1] <= 204) { + if (data[1] >= RTCP_SR && data[1] <= RTCP_APP) { /* RTCP packet, just skip */ data += packet_len; size -= packet_len; |