mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-02-04 06:08:26 +02:00
Merge commit 'bacc92b59bfa5d6a1f631e63e46fc1d2fb934e51'
* commit 'bacc92b59bfa5d6a1f631e63e46fc1d2fb934e51': rtpdec_vp9: Drop extra sanity check for size of input packet Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
693b8f11d7
@ -113,11 +113,6 @@ static int vp9_handle_packet(AVFormatContext *ctx, PayloadContext *rtp_vp9_ctx,
|
|||||||
* PictureID: 8 or 16 bits including the M bit.
|
* PictureID: 8 or 16 bits including the M bit.
|
||||||
*/
|
*/
|
||||||
if (has_pic_id) {
|
if (has_pic_id) {
|
||||||
if (len < 1) {
|
|
||||||
av_log(ctx, AV_LOG_ERROR, "Too short RTP/VP9 packet\n");
|
|
||||||
return AVERROR_INVALIDDATA;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* check for 1-byte or 2-byte picture index */
|
/* check for 1-byte or 2-byte picture index */
|
||||||
if (buf[0] & 0x80) {
|
if (buf[0] & 0x80) {
|
||||||
if (len < 2) {
|
if (len < 2) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user