aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/utils.c
diff options
context:
space:
mode:
authorJoseph Wecker <jwecker@justin.tv>2011-08-26 17:39:11 -0700
committerMichael Niedermayer <michaelni@gmx.at>2011-09-07 02:38:13 +0200
commit4c050429780b0d4010b6dbd3bd50b2d36ba810b2 (patch)
treed3b0d25afc7e1ae00a30bf0d866afd01a49958e7 /libavformat/utils.c
parentc054f11606d76022e990891654ed40d63b863b06 (diff)
downloadffmpeg-4c050429780b0d4010b6dbd3bd50b2d36ba810b2.tar.gz
flvdec: Properly decoding in-band metadata packets as data frames.
Diffstat (limited to 'libavformat/utils.c')
-rw-r--r--libavformat/utils.c2
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;