Commit cefabaad authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit 'e5419709'

* commit 'e5419709':
  lavc: remove the extended_data workarounds.

Conflicts:
	libavcodec/utils.c

One hunk is not merged as not all codecs are updated yet
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents 45fd4ec9 e5419709
......@@ -2171,7 +2171,6 @@ int attribute_align_arg avcodec_decode_audio4(AVCodecContext *avctx,
const AVPacket *avpkt)
{
AVCodecInternal *avci = avctx->internal;
int planar, channels;
int ret = 0;
*got_frame_ptr = 0;
......@@ -2304,18 +2303,6 @@ fail:
av_frame_unref(frame);
}
/* many decoders assign whole AVFrames, thus overwriting extended_data;
* make sure it's set correctly; assume decoders that actually use
* extended_data are doing it correctly */
if (*got_frame_ptr) {
planar = av_sample_fmt_is_planar(frame->format);
channels = av_frame_get_channels(frame);
if (!(planar && channels > AV_NUM_DATA_POINTERS))
frame->extended_data = frame->data;
} else {
frame->extended_data = NULL;
}
return ret;
}
......
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