summaryrefslogtreecommitdiffstats
path: root/libavformat/flvdec.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-07-23 17:08:56 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-07-23 17:41:12 +0200
commit01b236b70438527946b0dd79894c0105bc668c91 (patch)
treea04dab272828835fcb4e74e9b4743e437d2d76bc /libavformat/flvdec.c
parent601c2388549ff395bc99383029e92c2219152af0 (diff)
downloadffmpeg-streaming-01b236b70438527946b0dd79894c0105bc668c91.zip
ffmpeg-streaming-01b236b70438527946b0dd79894c0105bc668c91.tar.gz
avformat/flvdec: use AV_PKT_DATA_NEW_EXTRADATA for h264 too
Fixes Ticket 3787 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/flvdec.c')
-rw-r--r--libavformat/flvdec.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/flvdec.c b/libavformat/flvdec.c
index 899a036..a97fc32 100644
--- a/libavformat/flvdec.c
+++ b/libavformat/flvdec.c
@@ -951,7 +951,8 @@ retry_duration:
dts = pts = AV_NOPTS_VALUE;
}
}
- if (type == 0 && (!st->codec->extradata || st->codec->codec_id == AV_CODEC_ID_AAC)) {
+ if (type == 0 && (!st->codec->extradata || st->codec->codec_id == AV_CODEC_ID_AAC ||
+ st->codec->codec_id == AV_CODEC_ID_H264)) {
AVDictionaryEntry *t;
if (st->codec->extradata) {
OpenPOWER on IntegriCloud