]> git.sesse.net Git - ffmpeg/commit
avformat/dashdec: Remove redundant checks
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Sat, 19 Sep 2020 08:27:34 +0000 (10:27 +0200)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Mon, 21 Sep 2020 02:32:09 +0000 (04:32 +0200)
commit622efc5c83fd77dff52242a9a503cd8dcee8e36f
treefbaac3eee2841e838df2dd4b388aa225fa51f844
parentd63f8c873bd65f4dfab852069fb5faf07cffe6aa
avformat/dashdec: Remove redundant checks

This commit removes two always-true checks as well as a dead default
case of a switch. The check when parsing manifests is always true,
because we now jump to the cleaning code in case the format of the
representation is unknown. The default case of the switch is dead,
because the type of the representation is already checked at the
beginning of parse_manifest_representation(). The check when reading
the header is dead, because we error out if an error happened before.

Reviewed-by: Steven Liu <lq@chinaffmpeg.org>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
libavformat/dashdec.c