Skip to content
Snippets Groups Projects
Commit dffa312b authored by Philippe Gorley's avatar Philippe Gorley Committed by Guillaume Roguez
Browse files

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: default avatarGuillaume Roguez <guillaume.roguez@savoirfairelinux.com>
parent 5e3a394a
No related branches found
No related tags found
No related merge requests found
...@@ -219,7 +219,6 @@ int MediaDecoder::setupFromAudioData(const AudioFormat format) ...@@ -219,7 +219,6 @@ int MediaDecoder::setupFromAudioData(const AudioFormat format)
startTime_ = av_gettime(); startTime_ = av_gettime();
} }
decoderCtx_->refcounted_frames = 1;
ret = avcodec_open2(decoderCtx_, inputDecoder_, NULL); ret = avcodec_open2(decoderCtx_, inputDecoder_, NULL);
if (ret) { if (ret) {
RING_ERR("Could not open codec"); RING_ERR("Could not open codec");
...@@ -318,7 +317,6 @@ int MediaDecoder::setupFromVideoData() ...@@ -318,7 +317,6 @@ int MediaDecoder::setupFromVideoData()
startTime_ = av_gettime(); startTime_ = av_gettime();
} }
decoderCtx_->refcounted_frames = 1;
ret = avcodec_open2(decoderCtx_, inputDecoder_, NULL); ret = avcodec_open2(decoderCtx_, inputDecoder_, NULL);
if (ret) { if (ret) {
RING_ERR("Could not open codec"); RING_ERR("Could not open codec");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment