avformat/bethsoftvid: Fix potential memleak upon reallocation failure
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Sat, 21 Mar 2020 02:57:32 +0000 (03:57 +0100)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Tue, 19 May 2020 23:09:57 +0000 (01:09 +0200)
commit10b1d1d3ca6f69d27915ba4a7bf110b7a2e1e9f6
tree28c18206e6e1264c31ab46bcdf30ada6f05d26f3
parent5efb7dc2b2e437b201d3e6e28b2d2c7e121dc28b
avformat/bethsoftvid: Fix potential memleak upon reallocation failure

The classical ptr = av_realloc(ptr, size), just with av_fast_realloc().

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 5acef1206144554a48f699b421e8d739e752d8ab)
libavformat/bethsoftvid.c