Commit 9aa630a5 authored by Michael Niedermayer's avatar Michael Niedermayer

Merge remote-tracking branch 'qatar/master'

* qatar/master:
  configure: sanitise sparc vis check
  configure: recognise more sparc variants as --cpu argument
  build: Include HEADERS-yes in the HEADERS variable
  pcm: change references to raw to pcm
  ffv1: set the range coder state in decode_slice_header
  pcmdec: change default of channels parameter to 1

Conflicts:
	libavformat/pcmdec.c
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents 7fe6f6e2 6aa93689
...@@ -68,7 +68,7 @@ config.h: .config ...@@ -68,7 +68,7 @@ config.h: .config
@-tput sgr0 2>/dev/null @-tput sgr0 2>/dev/null
SUBDIR_VARS := CLEANFILES EXAMPLES FFLIBS HOSTPROGS TESTPROGS TOOLS \ SUBDIR_VARS := CLEANFILES EXAMPLES FFLIBS HOSTPROGS TESTPROGS TOOLS \
ARCH_HEADERS BUILT_HEADERS SKIPHEADERS \ HEADERS ARCH_HEADERS BUILT_HEADERS SKIPHEADERS \
ARMV5TE-OBJS ARMV6-OBJS ARMVFP-OBJS NEON-OBJS \ ARMV5TE-OBJS ARMV6-OBJS ARMVFP-OBJS NEON-OBJS \
ALTIVEC-OBJS VIS-OBJS \ ALTIVEC-OBJS VIS-OBJS \
MMX-OBJS YASM-OBJS \ MMX-OBJS YASM-OBJS \
......
...@@ -94,6 +94,7 @@ HOSTPROGS := $(HOSTPROGS:%=$(SUBDIR)%$(HOSTEXESUF)) ...@@ -94,6 +94,7 @@ HOSTPROGS := $(HOSTPROGS:%=$(SUBDIR)%$(HOSTEXESUF))
TOOLS += $(TOOLS-yes) TOOLS += $(TOOLS-yes)
TOOLOBJS := $(TOOLS:%=tools/%.o) TOOLOBJS := $(TOOLS:%=tools/%.o)
TOOLS := $(TOOLS:%=tools/%$(EXESUF)) TOOLS := $(TOOLS:%=tools/%$(EXESUF))
HEADERS += $(HEADERS-yes)
DEP_LIBS := $(foreach NAME,$(FFLIBS),lib$(NAME)/$($(CONFIG_SHARED:yes=S)LIBNAME)) DEP_LIBS := $(foreach NAME,$(FFLIBS),lib$(NAME)/$($(CONFIG_SHARED:yes=S)LIBNAME))
......
...@@ -2855,12 +2855,12 @@ elif enabled x86; then ...@@ -2855,12 +2855,12 @@ elif enabled x86; then
elif enabled sparc; then elif enabled sparc; then
case $cpu in case $cpu in
niagara) cypress|f93[04]|tsc701|sparcl*|supersparc|hypersparc|niagara|v[789])
cpuflags="-mcpu=$cpu" cpuflags="-mcpu=$cpu"
disable vis disable vis
;; ;;
sparc64) ultrasparc*|niagara[234])
cpuflags="-mcpu=v9" cpuflags="-mcpu=$cpu"
;; ;;
esac esac
...@@ -3446,9 +3446,7 @@ EOF ...@@ -3446,9 +3446,7 @@ EOF
elif enabled sparc; then elif enabled sparc; then
enabled vis && enabled vis && check_inline_asm vis '"pdist %f0, %f0, %f0"'
check_inline_asm vis '"pdist %f0, %f0, %f0"' -mcpu=ultrasparc &&
add_cflags -mcpu=ultrasparc -mtune=ultrasparc
elif enabled x86; then elif enabled x86; then
......
...@@ -28,15 +28,15 @@ ...@@ -28,15 +28,15 @@
#define RAW_SAMPLES 1024 #define RAW_SAMPLES 1024
typedef struct RawAudioDemuxerContext { typedef struct PCMAudioDemuxerContext {
AVClass *class; AVClass *class;
int sample_rate; int sample_rate;
int channels; int channels;
} RawAudioDemuxerContext; } PCMAudioDemuxerContext;
static int raw_read_header(AVFormatContext *s) static int pcm_read_header(AVFormatContext *s)
{ {
RawAudioDemuxerContext *s1 = s->priv_data; PCMAudioDemuxerContext *s1 = s->priv_data;
AVStream *st; AVStream *st;
st = avformat_new_stream(s, NULL); st = avformat_new_stream(s, NULL);
...@@ -61,7 +61,7 @@ static int raw_read_header(AVFormatContext *s) ...@@ -61,7 +61,7 @@ static int raw_read_header(AVFormatContext *s)
return 0; return 0;
} }
static int raw_read_packet(AVFormatContext *s, AVPacket *pkt) static int pcm_read_packet(AVFormatContext *s, AVPacket *pkt)
{ {
int ret, size, bps; int ret, size, bps;
// AVStream *st = s->streams[0]; // AVStream *st = s->streams[0];
...@@ -84,8 +84,8 @@ static int raw_read_packet(AVFormatContext *s, AVPacket *pkt) ...@@ -84,8 +84,8 @@ static int raw_read_packet(AVFormatContext *s, AVPacket *pkt)
} }
static const AVOption pcm_options[] = { static const AVOption pcm_options[] = {
{ "sample_rate", "", offsetof(RawAudioDemuxerContext, sample_rate), AV_OPT_TYPE_INT, {.i64 = 44100}, 0, INT_MAX, AV_OPT_FLAG_DECODING_PARAM }, { "sample_rate", "", offsetof(PCMAudioDemuxerContext, sample_rate), AV_OPT_TYPE_INT, {.i64 = 44100}, 0, INT_MAX, AV_OPT_FLAG_DECODING_PARAM },
{ "channels", "", offsetof(RawAudioDemuxerContext, channels), AV_OPT_TYPE_INT, {.i64 = 1}, 0, INT_MAX, AV_OPT_FLAG_DECODING_PARAM }, { "channels", "", offsetof(PCMAudioDemuxerContext, channels), AV_OPT_TYPE_INT, {.i64 = 1}, 0, INT_MAX, AV_OPT_FLAG_DECODING_PARAM },
{ NULL }, { NULL },
}; };
...@@ -99,9 +99,9 @@ static const AVClass name_ ## _demuxer_class = { \ ...@@ -99,9 +99,9 @@ static const AVClass name_ ## _demuxer_class = { \
AVInputFormat ff_pcm_ ## name_ ## _demuxer = { \ AVInputFormat ff_pcm_ ## name_ ## _demuxer = { \
.name = #name_, \ .name = #name_, \
.long_name = NULL_IF_CONFIG_SMALL(long_name_), \ .long_name = NULL_IF_CONFIG_SMALL(long_name_), \
.priv_data_size = sizeof(RawAudioDemuxerContext), \ .priv_data_size = sizeof(PCMAudioDemuxerContext), \
.read_header = raw_read_header, \ .read_header = pcm_read_header, \
.read_packet = raw_read_packet, \ .read_packet = pcm_read_packet, \
.read_seek = ff_pcm_read_seek, \ .read_seek = ff_pcm_read_seek, \
.flags = AVFMT_GENERIC_INDEX, \ .flags = AVFMT_GENERIC_INDEX, \
.extensions = ext, \ .extensions = ext, \
......
...@@ -2,8 +2,6 @@ include $(SUBDIR)../config.mak ...@@ -2,8 +2,6 @@ include $(SUBDIR)../config.mak
NAME = avutil NAME = avutil
HEADERS-$(CONFIG_LZO) += lzo.h
HEADERS = adler32.h \ HEADERS = adler32.h \
aes.h \ aes.h \
attributes.h \ attributes.h \
...@@ -47,7 +45,8 @@ HEADERS = adler32.h \ ...@@ -47,7 +45,8 @@ HEADERS = adler32.h \
timestamp.h \ timestamp.h \
version.h \ version.h \
xtea.h \ xtea.h \
$(HEADERS-yes) \
HEADERS-$(CONFIG_LZO) += lzo.h
ARCH_HEADERS = bswap.h \ ARCH_HEADERS = bswap.h \
intmath.h \ intmath.h \
......
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