diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2019-12-03 18:09:07 +0100 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2019-12-04 23:11:37 -0300 |
commit | a69f92a94638984cfc1203a43184e662365ab953 (patch) | |
tree | 5e7b1601b95018731242338057140004850043be /libavcodec/lzwenc.c | |
parent | 9ad1a6d64cc6cefccaa94c105dd2e74951281987 (diff) | |
download | ffmpeg-a69f92a94638984cfc1203a43184e662365ab953.tar.gz |
avformat/matroskadec: Simplify control flow of parsing laces
Up until now, when an error happened in one of the inner loops in
matroska_parse_laces, a variable designated for the return value has
been set to an error value and break has been used to exit the
current loop/case. This was done so that the end of matroska_parse_laces
is reached, because said function allocated memory which is later used
and freed in the calling function and passed at the end of
matroska_parse_laces.
But given that there is no allocation any more, one can now return
immediately. And this commit does this.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec/lzwenc.c')
0 files changed, 0 insertions, 0 deletions