Browse Source

Revert "avformat/rtpdec_rfc4175: Fix incorrect copy_offset calculation"

Reverted at the request of the Author due to potential regression with SMPTE 2110-20

This reverts commit 9051092e73.
tags/n4.3
Michael Niedermayer 5 years ago
parent
commit
6c67c8ca9a
1 changed files with 1 additions and 4 deletions
  1. +1
    -4
      libavformat/rtpdec_rfc4175.c

+ 1
- 4
libavformat/rtpdec_rfc4175.c View File

@@ -205,11 +205,8 @@ static int rfc4175_handle_packet(AVFormatContext *ctx, PayloadContext *data,
if (length > payload_len)
length = payload_len;

if (line < 1)
return AVERROR_INVALIDDATA;

/* prevent ill-formed packets to write after buffer's end */
copy_offset = ((line - 1) * data->width + offset) * data->pgroup / data->xinc;
copy_offset = (line * data->width + offset) * data->pgroup / data->xinc;
if (copy_offset + length > data->frame_size)
return AVERROR_INVALIDDATA;



Loading…
Cancel
Save