aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorJoseph Wecker <jwecker@justin.tv>2011-08-26 17:50:33 -0700
committerMichael Niedermayer <michaelni@gmx.at>2011-09-07 02:38:57 +0200
commit0078430e307cb5a420baf5e41922f1487ba6ea03 (patch)
tree2460318a7e5833296e8b86391b375b32d475feb0 /libavformat
parent4ee53d7e8689095194ee74ad20d3cb0f02144eeb (diff)
downloadffmpeg-0078430e307cb5a420baf5e41922f1487ba6ea03.tar.gz
flvdec: A little bit of cleanup
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/flvdec.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/libavformat/flvdec.c b/libavformat/flvdec.c
index 3f72b9d429..263a843b7e 100644
--- a/libavformat/flvdec.c
+++ b/libavformat/flvdec.c
@@ -414,17 +414,16 @@ static int flv_read_packet(AVFormatContext *s, AVPacket *pkt)
if ((flags & 0xf0) == 0x50) /* video info / command frame */
goto skip;
} else if (type == FLV_TAG_TYPE_META) {
- if (size > 13+1+4 && dts == 0) {
- // Header-type metadata stuff
+ if (size > 13+1+4 && dts == 0) { // Header-type metadata stuff
flv_read_metabody(s, next);
goto skip;
- } else if (dts != 0) {
- // Script-data "special" metadata frames - don't skip
+ } else if (dts != 0) { // Script-data "special" metadata frames - don't skip
stream_type=FLV_STREAM_TYPE_DATA;
} else {
goto skip;
}
} else {
+ av_log(s, AV_LOG_DEBUG, "skipping flv packet: type %d, size %d, flags %d\n", type, size, flags);
skip:
avio_seek(s->pb, next, SEEK_SET);
continue;
@@ -541,7 +540,7 @@ static int flv_read_packet(AVFormatContext *s, AVPacket *pkt)
pkt->stream_index = st->index;
if ( stream_type == FLV_STREAM_TYPE_AUDIO ||
- (flags & FLV_VIDEO_FRAMETYPE_MASK) == FLV_FRAME_KEY ||
+ ((flags & FLV_VIDEO_FRAMETYPE_MASK) == FLV_FRAME_KEY) ||
stream_type == FLV_STREAM_TYPE_DATA)
pkt->flags |= AV_PKT_FLAG_KEY;