]> git.sesse.net Git - ffmpeg/commit
avformat/dashdec: Return early for unsupported representations
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Sat, 19 Sep 2020 10:08:00 +0000 (12:08 +0200)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Mon, 21 Sep 2020 02:32:12 +0000 (04:32 +0200)
commit0389625cea6192c1e9c2f43640c171cef31b0c42
tree5b7edb76a7c1710b31fb8e22d73fadf611764b09
parent622efc5c83fd77dff52242a9a503cd8dcee8e36f
avformat/dashdec: Return early for unsupported representations

This allows to reduce the level of indentation for parsing the supported
representations (audio, video and subtitles). It also allows to avoid
some allocations and frees for unsupported representations.

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