diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2024-03-26 20:07:24 +0100 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2024-03-30 05:06:28 +0100 |
commit | ac14d682777a7f74cea1fdf42189c4c421eed664 (patch) | |
tree | 3a2ef7d3ee3ede886aed3f11827387b5e45083fb /fftools/cmdutils.c | |
parent | 4b44b5eaf0ad23c348317e5fa8f8a52cbdfc27b9 (diff) | |
download | ffmpeg-ac14d682777a7f74cea1fdf42189c4c421eed664.tar.gz |
avcodec/h264_refs: Rewrite code to make control flow clearer
While this change IMO makes the control flow clearer
for the human reader, it is especially important for
GCC: It erroneously believes that it is possible to
enter the SHORT2(UNUSED|LONG) cases without having
entered the preceding block that initializes pic,
frame_num, structure and j; it would emit -Wmaybe-uninitialized
warnings for these variables if they were not pseudo-
initialized with av_uninit(). This patch allows to remove
the latter.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'fftools/cmdutils.c')
0 files changed, 0 insertions, 0 deletions