avformat/concatdec: Simplify cleanup after read_header failure
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>
Mon, 20 Jul 2020 23:09:48 +0000 (01:09 +0200)
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>
Wed, 7 Jul 2021 19:47:20 +0000 (21:47 +0200)
commit2ca36ef08bf6a1bf8e9ceb26d55695e92b28cdaf
tree0ead26d9d21972e8a5b94b85f875faca9d67ce1a
parentb10668dd611ea65cb47e3541a41d5b6f57d10f36
avformat/concatdec: Simplify cleanup after read_header failure

by setting the FF_FMT_INIT_CLEANUP flag.

(Btw: concat_read_close() is not idempotent (it frees cat->files, but
doesn't reset cat->nb_files), so this demuxer was incompatible with
simply calling read_close generically upon read_header failure.)

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
libavformat/concatdec.c