Commit 00ebf89d authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit 'a7ac1a7b'

* commit 'a7ac1a7b':
  flv: Name an enum and use its type

Conflicts:
	libavformat/flvdec.c
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents e1ec9c7f a7ac1a7b
...@@ -56,7 +56,7 @@ enum { ...@@ -56,7 +56,7 @@ enum {
FLV_HEADER_FLAG_HASAUDIO = 4, FLV_HEADER_FLAG_HASAUDIO = 4,
}; };
enum { enum FlvTagType {
FLV_TAG_TYPE_AUDIO = 0x08, FLV_TAG_TYPE_AUDIO = 0x08,
FLV_TAG_TYPE_VIDEO = 0x09, FLV_TAG_TYPE_VIDEO = 0x09,
FLV_TAG_TYPE_META = 0x12, FLV_TAG_TYPE_META = 0x12,
......
...@@ -789,7 +789,8 @@ skip: ...@@ -789,7 +789,8 @@ skip:
static int flv_read_packet(AVFormatContext *s, AVPacket *pkt) static int flv_read_packet(AVFormatContext *s, AVPacket *pkt)
{ {
FLVContext *flv = s->priv_data; FLVContext *flv = s->priv_data;
int ret, i, type, size, flags; int ret, i, size, flags;
enum FlvTagType type;
int stream_type=-1; int stream_type=-1;
int64_t next, pos, meta_pos; int64_t next, pos, meta_pos;
int64_t dts, pts = AV_NOPTS_VALUE; int64_t dts, pts = AV_NOPTS_VALUE;
......
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