diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-07-25 13:29:52 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-09-18 01:44:09 +0200 |
commit | e028e8aa39a430568b486751cf82b3a26e24e7af (patch) | |
tree | ea505e9406d1e249a7441291121c8bc7340ef7f0 /libavcodec/g722dsp.c | |
parent | 4656c1771b4ac12d9df9812390551f32fda181bc (diff) | |
download | ffmpeg-e028e8aa39a430568b486751cf82b3a26e24e7af.tar.gz |
avcodec/smacker: Use same variable for return values and errors
smacker_decode_header_tree() uses different variables for return values
(res) and for errors (err) leading to code like
res = foo(bar);
if (res < 0) {
err = res;
goto error;
}
Given that no positive return value is ever used at all one can simplify
the above by removing the intermediate res.
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'libavcodec/g722dsp.c')
0 files changed, 0 insertions, 0 deletions