Browse Source

avformat: move PROBE_BUF_M* to internal.h

They will be used by the mp3 probe function in the next commit

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.1
Michael Niedermayer 11 years ago
parent
commit
a9d1a7c79b
2 changed files with 4 additions and 4 deletions
  1. +4
    -0
      libavformat/internal.h
  2. +0
    -4
      libavformat/utils.c

+ 4
- 0
libavformat/internal.h View File

@@ -26,6 +26,10 @@


#define MAX_URL_SIZE 4096 #define MAX_URL_SIZE 4096


/** size of probe buffer, for guessing file type from file contents */
#define PROBE_BUF_MIN 2048
#define PROBE_BUF_MAX (1<<20)

#ifdef DEBUG #ifdef DEBUG
# define hex_dump_debug(class, buf, size) av_hex_dump_log(class, AV_LOG_DEBUG, buf, size) # define hex_dump_debug(class, buf, size) av_hex_dump_log(class, AV_LOG_DEBUG, buf, size)
#else #else


+ 0
- 4
libavformat/utils.c View File

@@ -309,10 +309,6 @@ int av_demuxer_open(AVFormatContext *ic){
} }




/** size of probe buffer, for guessing file type from file contents */
#define PROBE_BUF_MIN 2048
#define PROBE_BUF_MAX (1<<20)

int av_probe_input_buffer(AVIOContext *pb, AVInputFormat **fmt, int av_probe_input_buffer(AVIOContext *pb, AVInputFormat **fmt,
const char *filename, void *logctx, const char *filename, void *logctx,
unsigned int offset, unsigned int max_probe_size) unsigned int offset, unsigned int max_probe_size)


Loading…
Cancel
Save