aboutsummaryrefslogtreecommitdiffstats
path: root/compat
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-01-26 21:04:53 +0100
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-01-29 19:30:25 +0100
commit24a654c6c96310b1b408a6d053ad52de41640e5e (patch)
tree5415daceddbcfe3f2623a18c23ae3f9fdede5d19 /compat
parent5a04c6a2697568c2b7233a0a9f4f20aa8a2a1706 (diff)
downloadffmpeg-24a654c6c96310b1b408a6d053ad52de41640e5e.tar.gz
avcodec/mpegvideo: Use offset instead of pointer for vbv_delay
An offset has the advantage of not needing to be updated when the buffer is reallocated. Furthermore, the way the pointer is currently updated is undefined behaviour in case the pointer is not already set (i.e. when not encoding MPEG-1/2), because it calculates the nonsense NULL - s->pb.buf. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'compat')
0 files changed, 0 insertions, 0 deletions