mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-18 21:30:55 +00:00
flv: Name an enum and use its type
This commit is contained in:
parent
30dfc1dad4
commit
a7ac1a7b94
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user