Commit dffa312b authored by Philippe Gorley's avatar Philippe Gorley Committed by Guillaume Roguez

media: don't set AVCodecContext->refcounted_frames

This attribute was useful with the old decoding API. Refcounted frames
are always used with the avcodec_send_packet/avcodec_receive_frame API.

Change-Id: I0904ed8731c329e0f8f3d59d1872bff6a26543be
Reviewed-by: Guillaume Roguez's avatarGuillaume Roguez <guillaume.roguez@savoirfairelinux.com>
parent 5e3a394a
......@@ -219,7 +219,6 @@ int MediaDecoder::setupFromAudioData(const AudioFormat format)
startTime_ = av_gettime();
}
decoderCtx_->refcounted_frames = 1;
ret = avcodec_open2(decoderCtx_, inputDecoder_, NULL);
if (ret) {
RING_ERR("Could not open codec");
......@@ -318,7 +317,6 @@ int MediaDecoder::setupFromVideoData()
startTime_ = av_gettime();
}
decoderCtx_->refcounted_frames = 1;
ret = avcodec_open2(decoderCtx_, inputDecoder_, NULL);
if (ret) {
RING_ERR("Could not open codec");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment