aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/mpegvideo_parser.c
diff options
context:
space:
mode:
authorHendrik Leppkes <h.leppkes@gmail.com>2018-04-05 17:09:35 +0200
committerHendrik Leppkes <h.leppkes@gmail.com>2018-04-15 10:18:26 +0200
commit8df8a9299364016027825a67534b93cd2b6af473 (patch)
tree477eb89b81131ba709bd0e09256a75ae04cb135b /libavcodec/mpegvideo_parser.c
parent250792be5e905cbcfd0b4858e57de9b007e74e44 (diff)
downloadffmpeg-8df8a9299364016027825a67534b93cd2b6af473.tar.gz
avcodec/aac_ac3_parser: account for data already in the parsing buffer
If a frame starts very close to a packet boundary, the start code may already have been added to the parsing buffer, indicated by a small negative value of "i", while the header is still being tracked in the "state" variable. Reduce the remaining size accordingly, otherwise trying to find the next frame could skip over the frame header and lump two frames together as one.
Diffstat (limited to 'libavcodec/mpegvideo_parser.c')
0 files changed, 0 insertions, 0 deletions