ffmpeg media reader: remove useless avformat_free_context():
avformat_close_input() already calls it. Change-Id: I45433527459bda430b8f0d15850fdcc019042db3
This commit is contained in:
parent
de9e43cd6a
commit
5aff790ae1
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user