Skip to content

Commit

Permalink
Always call release_buffer for private decoders when a frame is relea…
Browse files Browse the repository at this point in the history
…sed and not just when some private data exists.
  • Loading branch information
tralph committed Apr 15, 2011
1 parent 6f1737c commit c7901ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/avformatdecoder.cpp
Expand Up @@ -3004,7 +3004,7 @@ bool AvFormatDecoder::ProcessVideoFrame(AVStream *stream, AVFrame *mpa_pic)
picframe->frameNumber = framesPlayed;

m_parent->ReleaseNextVideoFrame(picframe, temppts);
if (private_dec && mpa_pic->data[3])
if (private_dec)
context->release_buffer(context, mpa_pic);

decoded_video_frame = picframe;
Expand Down

0 comments on commit c7901ed

Please sign in to comment.