summaryrefslogtreecommitdiffstats
path: root/libavcodec/cbs_mpeg2.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <[email protected]>2019-06-20 01:45:11 +0200
committerJames Almer <[email protected]>2019-12-31 16:57:37 -0300
commitfd53f6745e1fd0741f5d9d3aa7d5484cfd98f8ed (patch)
tree5e702bacf6cf1167adad01d78ef8b882803becaf /libavcodec/cbs_mpeg2.c
parent4bc84f4f7deb12190998d898c84b7cbc5002ce8c (diff)
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 <[email protected]> (cherry picked from commit b71a0367a6e763d631b8dcd608f98d42c05fa57c)
Diffstat (limited to 'libavcodec/cbs_mpeg2.c')
-rw-r--r--libavcodec/cbs_mpeg2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/cbs_mpeg2.c b/libavcodec/cbs_mpeg2.c
index 5a7e105177..a1ccd76b58 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)); \