avformat/flvdec: read the correct bits into the tag type
authorSteven Liu <lingjiujianke@gmail.com>
Thu, 4 Sep 2014 12:23:19 +0000 (20:23 +0800)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 4 Sep 2014 12:54:23 +0000 (14:54 +0200)
commit03efd7308289a57fd60df96b2f79e7522dfe844e
treec0db25f4e384582dd9a3e77ba71b83fe95282bb6
parentfe8f4c71e30569fe0ba7455e30d21f19eab3f908
avformat/flvdec: read the correct bits into the tag type

from the flv spec, the flvtag define the tagtype as one byte,
the spec desc is:
Reserved  UB[2] Reserved for FMS, should be 0
Filter    UB[1] Indicates if packets are filtered.
                0 = No pre-processing required.
                1 = Pre-processing (such as decryption) of the packet is
                    required before it can be rendered.
                    Shall be 0 in unencrypted files, and 1 for encrypted
tags.
                    See Annex F. FLV Encryption for the use of filters.
TagType   UB[5] Type of contents in this tag. The following types are
                defined:
                        8 = audio
                        9 = video
                        18 = script data

Signed-off-by: Steven Liu <qi.liu@chinacache.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/flvdec.c