diff options
author | Jacob Siddall <kobe@live.com.au> | 2019-06-27 06:06:22 +0000 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2019-08-05 18:08:08 +0200 |
commit | 9051092e73666e95986eb2d596cc0867aea05c3d (patch) | |
tree | aac1bf9506f9ec31ca2e67f28d7bdc2d6502d2ed /libavcodec/v210enc.h | |
parent | f12e662a3d3f489eec887b5f2ab20a550caed9cf (diff) | |
download | ffmpeg-9051092e73666e95986eb2d596cc0867aea05c3d.tar.gz |
avformat/rtpdec_rfc4175: Fix incorrect copy_offset calculation
The previous calculation code did not account for the fact that the
copy_offset for the start of the frame array is at index 0, yet the
scan line number from the rfc4175 RTP header starts at 1.
This caused 2 issues to appear:
- The first scan line was being copied into the array where the second
scan line should be. This caused the resulting video to have a green
line at the top of it.
- Since the packet containing the last scan line would fail the
calculation, the packet with the RTP marker would not be processed
which caused a log message saying "Missed previous RTP marker" to be
outputted for each frame.
Signed-off-by: Jacob Siddall <kobe@live.com.au>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/v210enc.h')
0 files changed, 0 insertions, 0 deletions