• Jacob Siddall's avatar
    avformat/rtpdec_rfc4175: Fix incorrect copy_offset calculation · 9051092e
    Jacob Siddall authored
    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: 's avatarJacob Siddall <kobe@live.com.au>
    Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
    9051092e
Name
Last commit
Last update
compat Loading commit data...
doc Loading commit data...
ffbuild Loading commit data...
fftools Loading commit data...
libavcodec Loading commit data...
libavdevice Loading commit data...
libavfilter Loading commit data...
libavformat Loading commit data...
libavresample Loading commit data...
libavutil Loading commit data...
libpostproc Loading commit data...
libswresample Loading commit data...
libswscale Loading commit data...
presets Loading commit data...
tests Loading commit data...
tools Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.travis.yml Loading commit data...
CONTRIBUTING.md Loading commit data...
COPYING.GPLv2 Loading commit data...
COPYING.GPLv3 Loading commit data...
COPYING.LGPLv2.1 Loading commit data...
COPYING.LGPLv3 Loading commit data...
CREDITS Loading commit data...
Changelog Loading commit data...
INSTALL.md Loading commit data...
LICENSE.md Loading commit data...
MAINTAINERS Loading commit data...
Makefile Loading commit data...
README.md Loading commit data...
RELEASE Loading commit data...
configure Loading commit data...