ffmpeg media reader: remove useless avformat_free_context():

avformat_close_input() already calls it.

Change-Id: I45433527459bda430b8f0d15850fdcc019042db3
This commit is contained in:
JackBurton79 2018-08-24 09:32:33 +02:00
parent de9e43cd6a
commit 5aff790ae1

View File

@ -212,10 +212,8 @@ StreamBase::StreamBase(BMediaIO* source, BLocker* sourceLock,
StreamBase::~StreamBase()
{
if (fContext != NULL)
avformat_close_input(&fContext);
avformat_close_input(&fContext);
av_free_packet(&fPacket);
avformat_free_context(fContext);
if (fIOContext != NULL)
av_free(fIOContext->buffer);
av_free(fIOContext);