mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-23 11:19:55 +00:00
rtpdec: Skip padding bytes at the end of packets
Originally committed as revision 25896 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
90f1f3bf00
commit
4838cdab21
@ -475,6 +475,12 @@ static int rtp_parse_packet_internal(RTPDemuxContext *s, AVPacket *pkt,
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (buf[0] & 0x20) {
|
||||
int padding = buf[len - 1];
|
||||
if (len >= 12 + padding)
|
||||
len -= padding;
|
||||
}
|
||||
|
||||
s->seq = seq;
|
||||
len -= 12;
|
||||
buf += 12;
|
||||
|
Loading…
Reference in New Issue
Block a user