diff options
author | Joseph Wecker <jwecker@justin.tv> | 2011-08-26 17:39:11 -0700 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-09-07 02:38:13 +0200 |
commit | 4c050429780b0d4010b6dbd3bd50b2d36ba810b2 (patch) | |
tree | d3b0d25afc7e1ae00a30bf0d866afd01a49958e7 /libavformat/utils.c | |
parent | c054f11606d76022e990891654ed40d63b863b06 (diff) | |
download | ffmpeg-4c050429780b0d4010b6dbd3bd50b2d36ba810b2.tar.gz |
flvdec: Properly decoding in-band metadata packets as data frames.
Diffstat (limited to 'libavformat/utils.c')
-rw-r--r-- | libavformat/utils.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c index d7d78bf5a3..d3a0d4a0c2 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -2119,6 +2119,8 @@ static int has_codec_parameters(AVCodecContext *avctx) case AVMEDIA_TYPE_VIDEO: val = avctx->width && avctx->pix_fmt != PIX_FMT_NONE; break; + case AVMEDIA_TYPE_DATA: + if(avctx->codec_id == CODEC_ID_NONE) return 1; default: val = 1; break; |