diff options
author | Clément Bœsch <clement.boesch@smartjog.com> | 2012-03-19 14:49:04 +0100 |
---|---|---|
committer | Clément Bœsch <ubitux@gmail.com> | 2012-03-20 07:53:40 +0100 |
commit | 9dd649c004f9dbb4ae818a7eef1fc4bfc2b9861e (patch) | |
tree | 9671fdfd4be75769ae723afc494cb34bce5a3e73 /libavformat/flvdec.c | |
parent | 30f2d97afe14ea7c067b22c4728ebe26eef6cc65 (diff) | |
download | ffmpeg-9dd649c004f9dbb4ae818a7eef1fc4bfc2b9861e.tar.gz |
flv: clarify use of video info/cmd frame.
Also add generated key frame in the enum, and doxycomment the existing
ones. Descriptions are directly taken from the public specifications.
Diffstat (limited to 'libavformat/flvdec.c')
-rw-r--r-- | libavformat/flvdec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/flvdec.c b/libavformat/flvdec.c index 8ae79501b4..94fd76d666 100644 --- a/libavformat/flvdec.c +++ b/libavformat/flvdec.c @@ -518,7 +518,7 @@ static int flv_read_packet(AVFormatContext *s, AVPacket *pkt) stream_type=FLV_STREAM_TYPE_VIDEO; flags = avio_r8(s->pb); size--; - if ((flags & 0xf0) == 0x50) /* video info / command frame */ + if ((flags & FLV_VIDEO_FRAMETYPE_MASK) == FLV_FRAME_VIDEO_INFO_CMD) goto skip; } else if (type == FLV_TAG_TYPE_META) { if (size > 13+1+4 && dts == 0) { // Header-type metadata stuff |