OSDN Git Service
(root)
/
coroid
/
ffmpeg_saccubus.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
flvdec: Properly decoding in-band metadata packets as data frames.
[coroid/ffmpeg_saccubus.git]
/
libavformat
/
utils.c
diff --git
a/libavformat/utils.c
b/libavformat/utils.c
index
d7d78bf
..
d3a0d4a
100644
(file)
--- 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;