aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVittorio Giovara <vittorio.giovara@gmail.com>2015-06-11 14:27:27 +0100
committerVittorio Giovara <vittorio.giovara@gmail.com>2015-06-12 17:02:49 +0100
commita7ac1a7b94447f33ae95be4d6d186e2775977f91 (patch)
tree87bfae1cbeed5835cf93c1a8c35d9dcd89642169
parent30dfc1dad4285e7362ce3f596d7c5d5d9b7fb33d (diff)
downloadffmpeg-a7ac1a7b94447f33ae95be4d6d186e2775977f91.tar.gz
flv: Name an enum and use its type
-rw-r--r--libavformat/flv.h2
-rw-r--r--libavformat/flvdec.c3
2 files changed, 3 insertions, 2 deletions
diff --git a/libavformat/flv.h b/libavformat/flv.h
index fe0fc90d83..7c08117f92 100644
--- a/libavformat/flv.h
+++ b/libavformat/flv.h
@@ -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,
diff --git a/libavformat/flvdec.c b/libavformat/flvdec.c
index eb31a6e1e2..3b0370c950 100644
--- a/libavformat/flvdec.c
+++ b/libavformat/flvdec.c
@@ -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;