diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-08-30 14:06:11 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-08-31 02:59:36 +0200 |
commit | a067d449558ac4ff69b53c7e09fdd6396d6f7c0c (patch) | |
tree | 0b8f5c3042bf263bf1e15189628ae7bb8bf5bd92 /libavcodec/tests/avpacket.c | |
parent | 72942ad6d4b243389d84e7e95641152ad9148bd9 (diff) | |
download | ffmpeg-a067d449558ac4ff69b53c7e09fdd6396d6f7c0c.tar.gz |
avcodec/roqvideodec: Move transient GetByteContext to the stack
This avoids keeping potentially dangling pointers in the context,
beautifies the code (by replacing "&ri->gb" by gb for every access to
the GetByteContext) and also highlights the GetByteContext's short-lived
nature better.
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'libavcodec/tests/avpacket.c')
0 files changed, 0 insertions, 0 deletions