Commit a7ac1a7b authored by Vittorio Giovara's avatar Vittorio Giovara

flv: Name an enum and use its type

parent 30dfc1da
......@@ -51,7 +51,7 @@ enum {
FLV_HEADER_FLAG_HASAUDIO = 4,
};
enum {
enum FlvTagType {
FLV_TAG_TYPE_AUDIO = 0x08,
FLV_TAG_TYPE_VIDEO = 0x09,
FLV_TAG_TYPE_META = 0x12,
......
......@@ -737,7 +737,8 @@ skip:
static int flv_read_packet(AVFormatContext *s, AVPacket *pkt)
{
FLVContext *flv = s->priv_data;
int ret, i, type, size, flags, is_audio;
int ret, i, size, flags, is_audio;
enum FlvTagType type;
int64_t next, pos;
int64_t dts, pts = AV_NOPTS_VALUE;
int sample_rate = 0, channels = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment