avformat/avidec: Fix memleak when allocating DVDemuxContext fails
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Fri, 27 Mar 2020 04:31:13 +0000 (05:31 +0100)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Sun, 5 Apr 2020 16:30:50 +0000 (18:30 +0200)
commitde0b04551da4e1470ce1c99321a768887df8c650
tree87c8455bdb33c0d67f5da5d14a443511ffe769d7
parent2084ea8c1dde97230a270155fc530b945edbf1cf
avformat/avidec: Fix memleak when allocating DVDemuxContext fails

An AVIStream (intended to be used as private data for an AVStream) would
leak in this scenario.

Also return a more fitting error code instead of AVERROR_INVALIDDATA.

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