Commit df605018 authored by Martin Storsjö's avatar Martin Storsjö

movenc: Use defines instead of hardcoded numbers for RTCP types

Signed-off-by: 's avatarMartin Storsjö <martin@martin.st>
parent 1c77a530
...@@ -24,6 +24,7 @@ ...@@ -24,6 +24,7 @@
#include "internal.h" #include "internal.h"
#include "rtpenc_chain.h" #include "rtpenc_chain.h"
#include "avio_internal.h" #include "avio_internal.h"
#include "rtp.h"
int ff_mov_init_hinting(AVFormatContext *s, int index, int src_index) 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, ...@@ -332,7 +333,7 @@ static int write_hint_packets(AVIOContext *out, const uint8_t *data,
size -= 4; size -= 4;
if (packet_len > size || packet_len <= 12) if (packet_len > size || packet_len <= 12)
break; break;
if (data[1] >= 200 && data[1] <= 204) { if (data[1] >= RTCP_SR && data[1] <= RTCP_APP) {
/* RTCP packet, just skip */ /* RTCP packet, just skip */
data += packet_len; data += packet_len;
size -= packet_len; size -= packet_len;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment