diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2019-06-20 01:45:11 +0200 |
---|---|---|
committer | Mark Thompson <sw@jkqxz.net> | 2019-07-27 22:00:43 +0100 |
commit | b71a0367a6e763d631b8dcd608f98d42c05fa57c (patch) | |
tree | be3fec3ada6650ef0696a1fe48df7d50a47dc964 /libavcodec/cbs_mpeg2.c | |
parent | c2a91645c5b5cd6ed32089ec79cbb667326a8d8a (diff) | |
download | ffmpeg-b71a0367a6e763d631b8dcd608f98d42c05fa57c.tar.gz |
cbs: Remove useless initializations
Up until now, a temporary variable was used and initialized every time a
value was read in CBS; if reading turned out to be successfull, this
value was overwritten (without having ever been looked at) with the
value read if reading was successfull; on failure the variable wasn't
touched either. Therefore these initializations can be and have been
removed.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'libavcodec/cbs_mpeg2.c')
-rw-r--r-- | libavcodec/cbs_mpeg2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/cbs_mpeg2.c b/libavcodec/cbs_mpeg2.c index ac2a7b0b1a..2466f569f6 100644 --- a/libavcodec/cbs_mpeg2.c +++ b/libavcodec/cbs_mpeg2.c @@ -57,7 +57,7 @@ #define RWContext GetBitContext #define xui(width, name, var, range_min, range_max, subs, ...) do { \ - uint32_t value = 0; \ + uint32_t value; \ CHECK(ff_cbs_read_unsigned(ctx, rw, width, #name, \ SUBSCRIPTS(subs, __VA_ARGS__), \ &value, range_min, range_max)); \ |