aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/utils.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-12-09 13:31:23 +0100
committerMichael Niedermayer <michaelni@gmx.at>2013-12-09 14:32:19 +0100
commitcefabaad3e882004ca7a54ea39500ee8e1c6ea93 (patch)
tree30ad9cb33ff0a749d06bedab8894aedf3f9f9a38 /libavcodec/utils.c
parent45fd4ec9ef2b3a7074c49cdddac6e7dcc127a874 (diff)
parente5419709f50593769037ab77d7102f82d9260784 (diff)
downloadffmpeg-cefabaad3e882004ca7a54ea39500ee8e1c6ea93.tar.gz
Merge commit 'e5419709f50593769037ab77d7102f82d9260784'
* commit 'e5419709f50593769037ab77d7102f82d9260784': lavc: remove the extended_data workarounds. Conflicts: libavcodec/utils.c One hunk is not merged as not all codecs are updated yet Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/utils.c')
-rw-r--r--libavcodec/utils.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index 102a0490b0..a078e8c3bf 100644
--- a/libavcodec/utils.c
+++ b/libavcodec/utils.c
@@ -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;
}