[FFmpeg-cvslog] avformat/flvdec: use AV_PKT_DATA_NEW_EXTRADATA for h264 too
Michael Niedermayer
git at videolan.org
Wed Jul 23 18:05:00 CEST 2014
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Wed Jul 23 17:08:56 2014 +0200| [01b236b70438527946b0dd79894c0105bc668c91] | committer: Michael Niedermayer
avformat/flvdec: use AV_PKT_DATA_NEW_EXTRADATA for h264 too
Fixes Ticket 3787
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=01b236b70438527946b0dd79894c0105bc668c91
---
libavformat/flvdec.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
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) {
More information about the ffmpeg-cvslog
mailing list