]> git.sesse.net Git - ffmpeg/commit
avformat/dashdec: Remove dead code
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Fri, 18 Sep 2020 21:50:53 +0000 (23:50 +0200)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Mon, 21 Sep 2020 02:31:19 +0000 (04:31 +0200)
commit248ef276beb8222bc2610484b830420e1a306d8b
tree6f3268ff8f0c3e3bddaa6a35b4a0b530ca64888d
parente09e2c6442924bfa1fb5efc419bc27fc6ef8a532
avformat/dashdec: Remove dead code

The code in question seems to have been copied from about 70 lines
above; yet the code here is only executed if some of the variables
(namely representation_segmenttemplate_node and fragment_template_node)
are NULL, so it makes no sense to check them for a child element.

Also remove a redundant resetting of a pointer to an AVFormatContext
after avformat_close_input() (which already sets the pointer to NULL).

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