avformat/avidec: Don't reimplement ff_free_stream()
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Fri, 27 Mar 2020 03:42:15 +0000 (04:42 +0100)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Sun, 5 Apr 2020 16:06:50 +0000 (18:06 +0200)
commit7940655d14e1741d68c364a8d027152f4f3420eb
tree2ee26c3544e7ff5be2d8cd7b2e21e51718b4db71
parent559c2e96e371f30eedccf370d4606fc86706ab75
avformat/avidec: Don't reimplement ff_free_stream()

Using ff_free_stream() makes the code more readable, more future-proof
(the old code freed AVCodecContexts and AVCodecParameters and its
substructures manually, so that there is a chance that there would be a
memleak for some time if new substructures were added) and reduces
code size.

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