Browse Source

Merge commit 'a7ac1a7b94447f33ae95be4d6d186e2775977f91'

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

Conflicts:
	libavformat/flvdec.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.8
Michael Niedermayer 10 years ago
parent
commit
00ebf89dcd
2 changed files with 3 additions and 2 deletions
  1. +1
    -1
      libavformat/flv.h
  2. +2
    -1
      libavformat/flvdec.c

+ 1
- 1
libavformat/flv.h View File

@@ -56,7 +56,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,


+ 2
- 1
libavformat/flvdec.c View File

@@ -789,7 +789,8 @@ skip:
static int flv_read_packet(AVFormatContext *s, AVPacket *pkt)
{
FLVContext *flv = s->priv_data;
int ret, i, type, size, flags;
int ret, i, size, flags;
enum FlvTagType type;
int stream_type=-1;
int64_t next, pos, meta_pos;
int64_t dts, pts = AV_NOPTS_VALUE;


Loading…
Cancel
Save