Skip to content
This repository was archived by the owner on Jan 16, 2024. It is now read-only.

Commit ae8261d

Browse files
committed
Full rebuild with rtools40
1 parent 845f6f2 commit ae8261d

File tree

159 files changed

+799
-195
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

159 files changed

+799
-195
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# FFmpeg 4.2.2
2+
3+
Compiled with [rtools-backports](https://github.com/r-windows/rtools-backports/tree/master/mingw-w64-ffmpeg) with dependencies from [rtools-packages](https://github.com/r-windows/rtools-packages).
4+
5+
Example linking flags:
6+
7+
```
8+
-lavfilter -lswscale -lpostproc -lavformat -lavcodec -lswresample -lavutil \
9+
-lvorbis -lvorbisenc -logg -lvpx \
10+
-lbz2 -lsecur32 -lws2_32 -liconv -lz -lmp3lame -lx264 \
11+
-lxvidcore -lole32 -lm -luser32 -lbcrypt
12+
```

include/libavcodec/ac3_parser.h

100644100755
File mode changed.

include/libavcodec/adts_parser.h

100644100755
File mode changed.

include/libavcodec/avcodec.h

100644100755
Lines changed: 89 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -409,6 +409,7 @@ enum AVCodecID {
409409
AV_CODEC_ID_DXV,
410410
AV_CODEC_ID_SCREENPRESSO,
411411
AV_CODEC_ID_RSCC,
412+
AV_CODEC_ID_AVS2,
412413

413414
AV_CODEC_ID_Y41P = 0x8000,
414415
AV_CODEC_ID_AVRP,
@@ -446,6 +447,16 @@ enum AVCodecID {
446447
AV_CODEC_ID_SVG,
447448
AV_CODEC_ID_GDV,
448449
AV_CODEC_ID_FITS,
450+
AV_CODEC_ID_IMM4,
451+
AV_CODEC_ID_PROSUMER,
452+
AV_CODEC_ID_MWSC,
453+
AV_CODEC_ID_WCMV,
454+
AV_CODEC_ID_RASC,
455+
AV_CODEC_ID_HYMT,
456+
AV_CODEC_ID_ARBC,
457+
AV_CODEC_ID_AGM,
458+
AV_CODEC_ID_LSCR,
459+
AV_CODEC_ID_VP4,
449460

450461
/* various PCM "codecs" */
451462
AV_CODEC_ID_FIRST_AUDIO = 0x10000, ///< A dummy id pointing at the start of audio codecs
@@ -485,6 +496,7 @@ enum AVCodecID {
485496
AV_CODEC_ID_PCM_S64BE,
486497
AV_CODEC_ID_PCM_F16LE,
487498
AV_CODEC_ID_PCM_F24LE,
499+
AV_CODEC_ID_PCM_VIDC,
488500

489501
/* various ADPCM codecs */
490502
AV_CODEC_ID_ADPCM_IMA_QT = 0x11000,
@@ -529,6 +541,7 @@ enum AVCodecID {
529541
AV_CODEC_ID_ADPCM_AICA,
530542
AV_CODEC_ID_ADPCM_IMA_DAT4,
531543
AV_CODEC_ID_ADPCM_MTAF,
544+
AV_CODEC_ID_ADPCM_AGM,
532545

533546
/* AMR */
534547
AV_CODEC_ID_AMR_NB = 0x12000,
@@ -637,6 +650,8 @@ enum AVCodecID {
637650
AV_CODEC_ID_APTX,
638651
AV_CODEC_ID_APTX_HD,
639652
AV_CODEC_ID_SBC,
653+
AV_CODEC_ID_ATRAC9,
654+
AV_CODEC_ID_HCOM,
640655

641656
/* subtitle codecs */
642657
AV_CODEC_ID_FIRST_SUBTITLE = 0x17000, ///< A dummy ID pointing at the start of subtitle codecs.
@@ -665,6 +680,8 @@ enum AVCodecID {
665680
AV_CODEC_ID_PJS,
666681
AV_CODEC_ID_ASS,
667682
AV_CODEC_ID_HDMV_TEXT_SUBTITLE,
683+
AV_CODEC_ID_TTML,
684+
AV_CODEC_ID_ARIB_CAPTION,
668685

669686
/* other specific kind of codecs (generally used for attachments) */
670687
AV_CODEC_ID_FIRST_UNKNOWN = 0x18000, ///< A dummy ID pointing at the start of various fake codecs.
@@ -843,6 +860,11 @@ typedef struct RcOverride{
843860
* Use qpel MC.
844861
*/
845862
#define AV_CODEC_FLAG_QPEL (1 << 4)
863+
/**
864+
* Don't output frames whose parameters differ from first
865+
* decoded frame in stream.
866+
*/
867+
#define AV_CODEC_FLAG_DROPCHANGED (1 << 5)
846868
/**
847869
* Use internal 2pass ratecontrol in first pass mode.
848870
*/
@@ -1062,6 +1084,13 @@ typedef struct RcOverride{
10621084
*/
10631085
#define AV_CODEC_CAP_HYBRID (1 << 19)
10641086

1087+
/**
1088+
* This codec takes the reordered_opaque field from input AVFrames
1089+
* and returns it in the corresponding field in AVCodecContext after
1090+
* encoding.
1091+
*/
1092+
#define AV_CODEC_CAP_ENCODER_REORDERED_OPAQUE (1 << 20)
1093+
10651094
/**
10661095
* Pan Scan area.
10671096
* This specifies the area which should be displayed.
@@ -1101,17 +1130,29 @@ typedef struct AVCPBProperties {
11011130
* Maximum bitrate of the stream, in bits per second.
11021131
* Zero if unknown or unspecified.
11031132
*/
1133+
#if FF_API_UNSANITIZED_BITRATES
11041134
int max_bitrate;
1135+
#else
1136+
int64_t max_bitrate;
1137+
#endif
11051138
/**
11061139
* Minimum bitrate of the stream, in bits per second.
11071140
* Zero if unknown or unspecified.
11081141
*/
1142+
#if FF_API_UNSANITIZED_BITRATES
11091143
int min_bitrate;
1144+
#else
1145+
int64_t min_bitrate;
1146+
#endif
11101147
/**
11111148
* Average bitrate of the stream, in bits per second.
11121149
* Zero if unknown or unspecified.
11131150
*/
1151+
#if FF_API_UNSANITIZED_BITRATES
11141152
int avg_bitrate;
1153+
#else
1154+
int64_t avg_bitrate;
1155+
#endif
11151156

11161157
/**
11171158
* The size of the buffer to which the ratecontrol is applied, in bits.
@@ -1312,7 +1353,7 @@ enum AVPacketSideDataType {
13121353
AV_PKT_DATA_METADATA_UPDATE,
13131354

13141355
/**
1315-
* MPEGTS stream ID, this is required to pass the stream ID
1356+
* MPEGTS stream ID as uint8_t, this is required to pass the stream ID
13161357
* information from the demuxer to the corresponding muxer.
13171358
*/
13181359
AV_PKT_DATA_MPEGTS_STREAM_ID,
@@ -1357,6 +1398,12 @@ enum AVPacketSideDataType {
13571398
*/
13581399
AV_PKT_DATA_ENCRYPTION_INFO,
13591400

1401+
/**
1402+
* Active Format Description data consisting of a single byte as specified
1403+
* in ETSI TS 101 154 using AVActiveFormatDescription enum.
1404+
*/
1405+
AV_PKT_DATA_AFD,
1406+
13601407
/**
13611408
* The number of side data types.
13621409
* This is not part of the public API/ABI in the sense that it may
@@ -1612,6 +1659,7 @@ typedef struct AVCodecContext {
16121659
* The allocated memory should be AV_INPUT_BUFFER_PADDING_SIZE bytes larger
16131660
* than extradata_size to avoid problems if it is read with the bitstream reader.
16141661
* The bytewise contents of extradata must not depend on the architecture or CPU endianness.
1662+
* Must be allocated with the av_malloc() family of functions.
16151663
* - encoding: Set/allocated/freed by libavcodec.
16161664
* - decoding: Set/allocated/freed by user.
16171665
*/
@@ -2009,15 +2057,19 @@ typedef struct AVCodecContext {
20092057

20102058
/**
20112059
* custom intra quantization matrix
2012-
* - encoding: Set by user, can be NULL.
2013-
* - decoding: Set by libavcodec.
2060+
* Must be allocated with the av_malloc() family of functions, and will be freed in
2061+
* avcodec_free_context().
2062+
* - encoding: Set/allocated by user, freed by libavcodec. Can be NULL.
2063+
* - decoding: Set/allocated/freed by libavcodec.
20142064
*/
20152065
uint16_t *intra_matrix;
20162066

20172067
/**
20182068
* custom inter quantization matrix
2019-
* - encoding: Set by user, can be NULL.
2020-
* - decoding: Set by libavcodec.
2069+
* Must be allocated with the av_malloc() family of functions, and will be freed in
2070+
* avcodec_free_context().
2071+
* - encoding: Set/allocated by user, freed by libavcodec. Can be NULL.
2072+
* - decoding: Set/allocated/freed by libavcodec.
20212073
*/
20222074
uint16_t *inter_matrix;
20232075

@@ -2661,7 +2713,10 @@ typedef struct AVCodecContext {
26612713
/**
26622714
* opaque 64-bit number (generally a PTS) that will be reordered and
26632715
* output in AVFrame.reordered_opaque
2664-
* - encoding: unused
2716+
* - encoding: Set by libavcodec to the reordered_opaque of the input
2717+
* frame corresponding to the last returned packet. Only
2718+
* supported by encoders with the
2719+
* AV_CODEC_CAP_ENCODER_REORDERED_OPAQUE capability.
26652720
* - decoding: Set by user.
26662721
*/
26672722
int64_t reordered_opaque;
@@ -2945,6 +3000,16 @@ typedef struct AVCodecContext {
29453000

29463001
#define FF_PROFILE_SBC_MSBC 1
29473002

3003+
#define FF_PROFILE_PRORES_PROXY 0
3004+
#define FF_PROFILE_PRORES_LT 1
3005+
#define FF_PROFILE_PRORES_STANDARD 2
3006+
#define FF_PROFILE_PRORES_HQ 3
3007+
#define FF_PROFILE_PRORES_4444 4
3008+
#define FF_PROFILE_PRORES_XQ 5
3009+
3010+
#define FF_PROFILE_ARIB_PROFILE_A 0
3011+
#define FF_PROFILE_ARIB_PROFILE_C 1
3012+
29483013
/**
29493014
* level
29503015
* - encoding: Set by user.
@@ -3297,6 +3362,14 @@ typedef struct AVCodecContext {
32973362
* used as reference pictures).
32983363
*/
32993364
int extra_hw_frames;
3365+
3366+
/**
3367+
* The percentage of damaged samples to discard a frame.
3368+
*
3369+
* - decoding: set by user
3370+
* - encoding: unused
3371+
*/
3372+
int discard_damaged_percentage;
33003373
} AVCodecContext;
33013374

33023375
#if FF_API_CODEC_GET_SET
@@ -4349,7 +4422,7 @@ int av_grow_packet(AVPacket *pkt, int grow_by);
43494422
* Initialize a reference-counted packet from av_malloc()ed data.
43504423
*
43514424
* @param pkt packet to be initialized. This function will set the data, size,
4352-
* buf and destruct fields, all others are left untouched.
4425+
* and buf fields, all others are left untouched.
43534426
* @param data Data allocated by av_malloc() to be used as packet data. If this
43544427
* function returns successfully, the data is owned by the underlying AVBuffer.
43554428
* The caller may not access the data through other means.
@@ -4855,6 +4928,9 @@ int avcodec_send_packet(AVCodecContext *avctx, const AVPacket *avpkt);
48554928
* AVERROR_EOF: the decoder has been fully flushed, and there will be
48564929
* no more output frames
48574930
* AVERROR(EINVAL): codec not opened, or it is an encoder
4931+
* AVERROR_INPUT_CHANGED: current decoded frame has changed parameters
4932+
* with respect to first decoded frame. Applicable
4933+
* when flag AV_CODEC_FLAG_DROPCHANGED is set.
48584934
* other negative values: legitimate decoding errors
48594935
*/
48604936
int avcodec_receive_frame(AVCodecContext *avctx, AVFrame *frame);
@@ -5766,6 +5842,7 @@ typedef struct AVBitStreamFilter {
57665842
int (*init)(AVBSFContext *ctx);
57675843
int (*filter)(AVBSFContext *ctx, AVPacket *pkt);
57685844
void (*close)(AVBSFContext *ctx);
5845+
void (*flush)(AVBSFContext *ctx);
57695846
} AVBitStreamFilter;
57705847

57715848
#if FF_API_OLD_BSF
@@ -5892,6 +5969,11 @@ int av_bsf_send_packet(AVBSFContext *ctx, AVPacket *pkt);
58925969
*/
58935970
int av_bsf_receive_packet(AVBSFContext *ctx, AVPacket *pkt);
58945971

5972+
/**
5973+
* Reset the internal bitstream filter state / flush internal buffers.
5974+
*/
5975+
void av_bsf_flush(AVBSFContext *ctx);
5976+
58955977
/**
58965978
* Free a bitstream filter context and everything associated with it; write NULL
58975979
* into the supplied pointer.

include/libavcodec/avdct.h

100644100755
File mode changed.

include/libavcodec/avfft.h

100644100755
File mode changed.

include/libavcodec/d3d11va.h

100644100755
File mode changed.

include/libavcodec/dirac.h

100644100755
File mode changed.

include/libavcodec/dv_profile.h

100644100755
File mode changed.

include/libavcodec/dxva2.h

100644100755
File mode changed.

include/libavcodec/jni.h

100644100755
File mode changed.

include/libavcodec/mediacodec.h

100644100755
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,4 +85,17 @@ typedef struct MediaCodecBuffer AVMediaCodecBuffer;
8585
*/
8686
int av_mediacodec_release_buffer(AVMediaCodecBuffer *buffer, int render);
8787

88+
/**
89+
* Release a MediaCodec buffer and render it at the given time to the surface
90+
* that is associated with the decoder. The timestamp must be within one second
91+
* of the current java/lang/System#nanoTime() (which is implemented using
92+
* CLOCK_MONOTONIC on Android). See the Android MediaCodec documentation
93+
* of android/media/MediaCodec#releaseOutputBuffer(int,long) for more details.
94+
*
95+
* @param buffer the buffer to render
96+
* @param time timestamp in nanoseconds of when to render the buffer
97+
* @return 0 on success, < 0 otherwise
98+
*/
99+
int av_mediacodec_render_buffer_at_time(AVMediaCodecBuffer *buffer, int64_t time);
100+
88101
#endif /* AVCODEC_MEDIACODEC_H */

include/libavcodec/qsv.h

100644100755
File mode changed.

include/libavcodec/vaapi.h

100644100755
File mode changed.

include/libavcodec/vdpau.h

100644100755
File mode changed.

include/libavcodec/version.h

100644100755
Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
#include "libavutil/version.h"
2929

3030
#define LIBAVCODEC_VERSION_MAJOR 58
31-
#define LIBAVCODEC_VERSION_MINOR 18
31+
#define LIBAVCODEC_VERSION_MINOR 54
3232
#define LIBAVCODEC_VERSION_MICRO 100
3333

3434
#define LIBAVCODEC_VERSION_INT AV_VERSION_INT(LIBAVCODEC_VERSION_MAJOR, \
@@ -132,6 +132,9 @@
132132
#ifndef FF_API_NEXT
133133
#define FF_API_NEXT (LIBAVCODEC_VERSION_MAJOR < 59)
134134
#endif
135+
#ifndef FF_API_UNSANITIZED_BITRATES
136+
#define FF_API_UNSANITIZED_BITRATES (LIBAVCODEC_VERSION_MAJOR < 59)
137+
#endif
135138

136139

137140
#endif /* AVCODEC_VERSION_H */

include/libavcodec/videotoolbox.h

100644100755
File mode changed.

include/libavcodec/vorbis_parser.h

100644100755
File mode changed.

include/libavcodec/xvmc.h

100644100755
File mode changed.

include/libavdevice/avdevice.h

100644100755
File mode changed.

include/libavdevice/version.h

100644100755
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
#include "libavutil/version.h"
2929

3030
#define LIBAVDEVICE_VERSION_MAJOR 58
31-
#define LIBAVDEVICE_VERSION_MINOR 3
31+
#define LIBAVDEVICE_VERSION_MINOR 8
3232
#define LIBAVDEVICE_VERSION_MICRO 100
3333

3434
#define LIBAVDEVICE_VERSION_INT AV_VERSION_INT(LIBAVDEVICE_VERSION_MAJOR, \

include/libavfilter/avfilter.h

100644100755
File mode changed.

include/libavfilter/buffersink.h

100644100755
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ int av_buffersink_get_frame(AVFilterContext *ctx, AVFrame *frame);
151151
* the end of stream, when it can contain less than nb_samples.
152152
*
153153
* @return The return codes have the same meaning as for
154-
* av_buffersink_get_samples().
154+
* av_buffersink_get_frame().
155155
*
156156
* @warning do not mix this function with av_buffersink_get_frame(). Use only one or
157157
* the other with a single sink, not both.

include/libavfilter/buffersrc.h

100644100755
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ typedef struct AVBufferSrcParameters {
106106
AVBufferRef *hw_frames_ctx;
107107

108108
/**
109-
* Audio only, the audio sampling rate in samples per secon.
109+
* Audio only, the audio sampling rate in samples per second.
110110
*/
111111
int sample_rate;
112112

include/libavfilter/version.h

100644100755
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,10 @@
3030
#include "libavutil/version.h"
3131

3232
#define LIBAVFILTER_VERSION_MAJOR 7
33-
#define LIBAVFILTER_VERSION_MINOR 16
33+
#define LIBAVFILTER_VERSION_MINOR 57
3434
#define LIBAVFILTER_VERSION_MICRO 100
3535

36+
3637
#define LIBAVFILTER_VERSION_INT AV_VERSION_INT(LIBAVFILTER_VERSION_MAJOR, \
3738
LIBAVFILTER_VERSION_MINOR, \
3839
LIBAVFILTER_VERSION_MICRO)

0 commit comments

Comments
 (0)