Commit 1a33fe11 authored by cehoyos's avatar cehoyos

Move AVCodecTag from riff.h into internal.h.

Patch by Francesco Lavra, francescolavra interfree it


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@23250 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent fe2b1a11
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
*/ */
#include "avformat.h" #include "avformat.h"
#include "riff.h" #include "internal.h"
#include "caf.h" #include "caf.h"
/** /**
......
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
#ifndef AVFORMAT_CAF_H #ifndef AVFORMAT_CAF_H
#define AVFORMAT_CAF_H #define AVFORMAT_CAF_H
#include "riff.h" #include "internal.h"
extern const AVCodecTag ff_codec_caf_tags[]; extern const AVCodecTag ff_codec_caf_tags[];
......
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
*/ */
#include "avformat.h" #include "avformat.h"
#include "flv.h" #include "flv.h"
#include "riff.h" #include "internal.h"
#include "avc.h" #include "avc.h"
#undef NDEBUG #undef NDEBUG
......
...@@ -24,6 +24,11 @@ ...@@ -24,6 +24,11 @@
#include <stdint.h> #include <stdint.h>
#include "avformat.h" #include "avformat.h"
typedef struct AVCodecTag {
enum CodecID id;
unsigned int tag;
} AVCodecTag;
void ff_dynarray_add(intptr_t **tab_ptr, int *nb_ptr, intptr_t elem); void ff_dynarray_add(intptr_t **tab_ptr, int *nb_ptr, intptr_t elem);
#ifdef __GNUC__ #ifdef __GNUC__
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
*/ */
#include "avformat.h" #include "avformat.h"
#include "riff.h" #include "internal.h"
#include "isom.h" #include "isom.h"
/* http://www.mp4ra.org */ /* http://www.mp4ra.org */
......
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
#define AVFORMAT_ISOM_H #define AVFORMAT_ISOM_H
#include "avio.h" #include "avio.h"
#include "riff.h" #include "internal.h"
#include "dv.h" #include "dv.h"
/* isom.c */ /* isom.c */
......
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
#include "libavutil/tree.h" #include "libavutil/tree.h"
#include "nut.h" #include "nut.h"
#include "internal.h"
const AVCodecTag ff_nut_subtitle_tags[] = { const AVCodecTag ff_nut_subtitle_tags[] = {
{ CODEC_ID_TEXT , MKTAG('U', 'T', 'F', '8') }, { CODEC_ID_TEXT , MKTAG('U', 'T', 'F', '8') },
......
...@@ -23,6 +23,7 @@ ...@@ -23,6 +23,7 @@
#include "libavutil/tree.h" #include "libavutil/tree.h"
#include "libavcodec/mpegaudiodata.h" #include "libavcodec/mpegaudiodata.h"
#include "nut.h" #include "nut.h"
#include "internal.h"
static int find_expected_header(AVCodecContext *c, int size, int key_frame, uint8_t out[64]){ static int find_expected_header(AVCodecContext *c, int size, int key_frame, uint8_t out[64]){
int sample_rate= c->sample_rate; int sample_rate= c->sample_rate;
......
...@@ -30,15 +30,11 @@ ...@@ -30,15 +30,11 @@
#include "libavcodec/avcodec.h" #include "libavcodec/avcodec.h"
#include "avio.h" #include "avio.h"
#include "internal.h"
int64_t ff_start_tag(ByteIOContext *pb, const char *tag); int64_t ff_start_tag(ByteIOContext *pb, const char *tag);
void ff_end_tag(ByteIOContext *pb, int64_t start); void ff_end_tag(ByteIOContext *pb, int64_t start);
typedef struct AVCodecTag {
enum CodecID id;
unsigned int tag;
} AVCodecTag;
void ff_put_bmp_header(ByteIOContext *pb, AVCodecContext *enc, const AVCodecTag *tags, int for_asf); void ff_put_bmp_header(ByteIOContext *pb, AVCodecContext *enc, const AVCodecTag *tags, int for_asf);
int ff_put_wav_header(ByteIOContext *pb, AVCodecContext *enc); int ff_put_wav_header(ByteIOContext *pb, AVCodecContext *enc);
enum CodecID ff_wav_codec_get_id(unsigned int tag, int bps); enum CodecID ff_wav_codec_get_id(unsigned int tag, int bps);
......
...@@ -20,6 +20,7 @@ ...@@ -20,6 +20,7 @@
*/ */
#include "voc.h" #include "voc.h"
#include "internal.h"
const unsigned char ff_voc_magic[21] = "Creative Voice File\x1A"; const unsigned char ff_voc_magic[21] = "Creative Voice File\x1A";
......
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
#include "libavutil/intreadwrite.h" #include "libavutil/intreadwrite.h"
#include "voc.h" #include "voc.h"
#include "internal.h"
static int voc_probe(AVProbeData *p) static int voc_probe(AVProbeData *p)
......
...@@ -20,6 +20,7 @@ ...@@ -20,6 +20,7 @@
*/ */
#include "voc.h" #include "voc.h"
#include "internal.h"
typedef struct voc_enc_context { typedef struct voc_enc_context {
......
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