Skip to content

Commit e4cb313

Browse files
committed
Merge remote-tracking branch 'ffmpeg/master' into workflows
2 parents aa84960 + 4611ed5 commit e4cb313

30 files changed

+240
-987
lines changed

MAINTAINERS

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ Commandline utility code:
4545
QuickTime faststart:
4646
tools/qt-faststart.c Baptiste Coudurier
4747

48+
Execution Graph Printing
49+
fftools/graph, fftools/resources [2] softworkz
4850

4951
Miscellaneous Areas
5052
===================
@@ -267,7 +269,7 @@ Codecs:
267269
vp8 David Conrad, Ronald Bultje
268270
vp9 Ronald Bultje
269271
vqavideo.c Mike Melanson
270-
vvc [2] Nuo Mi
272+
vvc [2] Nuo Mi, Wu Jianhua, Frank Plowman
271273
wmaprodec.c Sascha Sommer
272274
wmavoice.c Ronald S. Bultje
273275
wmv2.c Michael Niedermayer
@@ -554,7 +556,6 @@ Pedro Arthur
554556
Sebastien Zwickert
555557
Vittorio Giovara
556558
wm4
557-
softworkz
558559
(this list is incomplete)
559560

560561

@@ -587,6 +588,7 @@ Benoit Fouet B22A 4F4F 43EF 636B BB66 FCDC 0023 AE1E 2985 49C8
587588
Clément Bœsch 52D0 3A82 D445 F194 DB8B 2B16 87EE 2CB8 F4B8 FCF9
588589
Daniel Verkamp 78A6 07ED 782C 653E C628 B8B9 F0EB 8DD8 2F0E 21C7
589590
FFmpeg release signing key FCF9 86EA 15E6 E293 A564 4F10 B432 2F04 D676 58D8
591+
Frank Plowman 34E2 48D6 B7DF 4769 70C7 3304 03A8 4C6A 098F 2C6B
590592
Ganesh Ajjanagadde C96A 848E 97C3 CEA2 AB72 5CE4 45F9 6A2D 3C36 FB1B
591593
Gwenole Beauchesne 2E63 B3A6 3E44 37E2 017D 2704 53C7 6266 B153 99C4
592594
Haihao Xiang (haihao) 1F0C 31E8 B4FE F7A4 4DC1 DC99 E0F5 76D4 76FC 437F

configure

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2606,7 +2606,6 @@ CONFIG_EXTRA="
26062606
iamfdec
26072607
iamfenc
26082608
idctdsp
2609-
iirfilter
26102609
inflate_wrapper
26112610
intrax8
26122611
iso_media
@@ -2917,7 +2916,7 @@ wmv2dsp_select="qpeldsp"
29172916
# decoders / encoders
29182917
aac_decoder_select="adts_header mpeg4audio sinewin"
29192918
aac_fixed_decoder_select="adts_header mpeg4audio"
2920-
aac_encoder_select="audio_frame_queue iirfilter lpc sinewin"
2919+
aac_encoder_select="audio_frame_queue lpc sinewin"
29212920
aac_latm_decoder_select="aac_decoder aac_latm_parser"
29222921
ac3_decoder_select="ac3_parser ac3dsp bswapdsp fmtconvert"
29232922
ac3_fixed_decoder_select="ac3_parser ac3dsp bswapdsp"
@@ -7490,7 +7489,7 @@ fi
74907489

74917490
enabled amf &&
74927491
check_cpp_condition amf "AMF/core/Version.h" \
7493-
"(AMF_VERSION_MAJOR << 48 | AMF_VERSION_MINOR << 32 | AMF_VERSION_RELEASE << 16 | AMF_VERSION_BUILD_NUM) >= 0x0001000400230000"
7492+
"(AMF_VERSION_MAJOR << 48 | AMF_VERSION_MINOR << 32 | AMF_VERSION_RELEASE << 16 | AMF_VERSION_BUILD_NUM) >= 0x0001000400240000"
74947493

74957494
# Funny iconv installations are not unusual, so check it after all flags have been set
74967495
if enabled libc_iconv; then

doc/mips.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,5 @@ Files that have MIPS copyright notice in them:
6060
compute_antialias_float.h
6161
lsp_mips.h
6262
fmtconvert_mips.c
63-
iirfilter_mips.c
6463
mpegaudiodsp_mips_fixed.c
6564
mpegaudiodsp_mips_float.c

libavcodec/Makefile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,6 @@ OBJS-$(CONFIG_HUFFMAN) += huffman.o
120120
OBJS-$(CONFIG_HUFFYUVDSP) += huffyuvdsp.o
121121
OBJS-$(CONFIG_HUFFYUVENCDSP) += huffyuvencdsp.o
122122
OBJS-$(CONFIG_IDCTDSP) += idctdsp.o simple_idct.o jrevdct.o
123-
OBJS-$(CONFIG_IIRFILTER) += iirfilter.o
124123
OBJS-$(CONFIG_INFLATE_WRAPPER) += zlib_wrapper.o
125124
OBJS-$(CONFIG_INTRAX8) += intrax8.o intrax8dsp.o msmpeg4_vc1_data.o
126125
OBJS-$(CONFIG_IVIDSP) += ivi_dsp.o
@@ -1336,7 +1335,6 @@ TESTPROGS-$(CONFIG_CABAC) += cabac
13361335
TESTPROGS-$(CONFIG_GOLOMB) += golomb
13371336
TESTPROGS-$(CONFIG_IDCTDSP) += dct
13381337
TESTPROGS-$(CONFIG_DXV_ENCODER) += hashtable
1339-
TESTPROGS-$(CONFIG_IIRFILTER) += iirfilter
13401338
TESTPROGS-$(CONFIG_MJPEG_ENCODER) += mjpegenc_huffman
13411339
TESTPROGS-$(HAVE_MMX) += motion
13421340
TESTPROGS-$(CONFIG_MPEGVIDEO) += mpeg12framerate

libavcodec/aacenc.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -845,8 +845,6 @@ static int aac_encode_frame(AVCodecContext *avctx, AVPacket *avpkt,
845845
}
846846

847847
copy_input_samples(s, frame);
848-
if (s->psypp)
849-
ff_psy_preprocess(s->psypp, s->planar_samples, s->channels);
850848

851849
if (!avctx->frame_num)
852850
return 0;
@@ -1141,8 +1139,6 @@ static av_cold int aac_encode_end(AVCodecContext *avctx)
11411139
av_tx_uninit(&s->mdct128);
11421140
ff_psy_end(&s->psy);
11431141
ff_lpc_end(&s->lpc);
1144-
if (s->psypp)
1145-
ff_psy_preprocess_end(s->psypp);
11461142
av_freep(&s->buffer.samples);
11471143
av_freep(&s->cpe);
11481144
av_freep(&s->fdsp);
@@ -1294,7 +1290,6 @@ static av_cold int aac_encode_init(AVCodecContext *avctx)
12941290
if ((ret = ff_psy_init(&s->psy, avctx, 2, sizes, lengths,
12951291
s->chan_map[0], grouping)) < 0)
12961292
return ret;
1297-
s->psypp = ff_psy_preprocess_init(avctx);
12981293
ff_lpc_init(&s->lpc, 2*avctx->frame_size, TNS_MAX_ORDER, FF_LPC_TYPE_LEVINSON);
12991294
s->random_state = 0x1f2e3d4c;
13001295

libavcodec/aacenc.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,6 @@ typedef struct AACEncContext {
199199

200200
ChannelElement *cpe; ///< channel elements
201201
FFPsyContext psy;
202-
struct FFPsyPreprocessContext* psypp;
203202
const AACCoefficientsEncoder *coder;
204203
int cur_channel; ///< current channel for coder context
205204
int random_state;

libavcodec/aacpsy.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -593,7 +593,6 @@ static float calc_reduced_thr_3gpp(AacPsyBand *band, float min_snr,
593593
return thr;
594594
}
595595

596-
#ifndef calc_thr_3gpp
597596
static void calc_thr_3gpp(const FFPsyWindowInfo *wi, const int num_bands, AacPsyChannel *pch,
598597
const uint8_t *band_sizes, const float *coefs, const int cutoff)
599598
{
@@ -622,9 +621,7 @@ static void calc_thr_3gpp(const FFPsyWindowInfo *wi, const int num_bands, AacPsy
622621
}
623622
}
624623
}
625-
#endif /* calc_thr_3gpp */
626624

627-
#ifndef psy_hp_filter
628625
static void psy_hp_filter(const float *firbuf, float *hpfsmpl, const float *psy_fir_coeffs)
629626
{
630627
int i, j;
@@ -641,7 +638,6 @@ static void psy_hp_filter(const float *firbuf, float *hpfsmpl, const float *psy_
641638
hpfsmpl[i] = (sum1 + sum2) * 32768.0f;
642639
}
643640
}
644-
#endif /* psy_hp_filter */
645641

646642
/**
647643
* Calculate band thresholds as suggested in 3GPP TS26.403

libavcodec/huffman.c

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,10 @@
3939
#define HNODE -1
4040

4141
typedef struct HeapElem {
42-
uint64_t val;
42+
union {
43+
uint64_t val;
44+
uint16_t dummy; // exists solely to ensure alignof(HeapElem) >= alignof(uint16_t)
45+
};
4346
int name;
4447
} HeapElem;
4548

@@ -59,19 +62,23 @@ static void heap_sift(HeapElem *h, int root, int size)
5962

6063
int ff_huff_gen_len_table(uint8_t *dst, const uint64_t *stats, int stats_size, int skip0)
6164
{
62-
HeapElem *h = av_malloc_array(sizeof(*h), stats_size);
63-
int *up = av_malloc_array(sizeof(*up) * 2, stats_size);
64-
uint8_t *len = av_malloc_array(sizeof(*len) * 2, stats_size);
65-
uint16_t *map= av_malloc_array(sizeof(*map), stats_size);
65+
int *up;
66+
uint16_t *map;
67+
uint8_t *len;
68+
HeapElem *h = av_malloc_array(stats_size,
69+
sizeof(*h) + 2 * sizeof(up) + 2 * sizeof(len) + sizeof(map));
70+
if (!h)
71+
return AVERROR(ENOMEM);
72+
up = (int*)(h + stats_size);
73+
// map is suitably aligned because up uses an even number of elements
74+
// and alignof(uint16_t) is either 1 or 2.
75+
map = (uint16_t*)(up + 2 * stats_size);
76+
len = (uint8_t*)(map + stats_size);
77+
6678
int offset, i, next;
6779
int size = 0;
6880
int ret = 0;
6981

70-
if (!h || !up || !len || !map) {
71-
ret = AVERROR(ENOMEM);
72-
goto end;
73-
}
74-
7582
for (i = 0; i<stats_size; i++) {
7683
dst[i] = 255;
7784
if (stats[i] || !skip0)
@@ -107,11 +114,7 @@ int ff_huff_gen_len_table(uint8_t *dst, const uint64_t *stats, int stats_size, i
107114
}
108115
if (i==size) break;
109116
}
110-
end:
111117
av_free(h);
112-
av_free(up);
113-
av_free(len);
114-
av_free(map);
115118
return ret;
116119
}
117120

0 commit comments

Comments
 (0)