    On branch release/5.1
    Your branch is ahead of 'origin/release/5.1' by 1 commit.
      (use "git push" to publish your local commits)

    nothing to commit, working tree clean
    commit f28c63ec68b180dfa78961b8906ba6dc7bd795bf
    Author: Kirill Gavrilov
    Date:   Sat Jan 26 16:39:29 2019 +0300

        Workaround missing  within VS2010

    commit 30d432f205538f6ef6c86ed0a90e27cdd735cd2b
    Author: Leo Izen
    Date:   Wed Jan 18 09:16:37 2023 -0500

        avcodec/libjxldec: fix gamma22 and gamma28 recognition

        Gamma 2.2 and Gamma 2.8 are tagged in the file as 0.45455 and 0.35714,
        respectively (i.e. 1/2.2 and 1/2.8). Trying to identify them as 2.2 and
        2.8 instead of these values will cause the transfer function to not
        properly be recognized. This patch fixes this.

        (cherry picked from commit 9d5e66942c5bae578926e29efebec348199798df)

    commit 070b38167c10f7742c449c25e65ffef90c8f8f0b
    Author: Thierry Foucu
    Date:   Wed Jan 4 10:54:24 2023 -0800

        avcodec/mpeg12dec: use init_get_bits8 and check the return value

        Signed-off-by: James Almer
        (cherry picked from commit efbe84eb1b74a80cd12174feaaa37da2e8fb1e66)

    commit 807afa59cca8f6019c4be4043de87a52ee11741c
    Author: Timo Rothenpieler
    Date:   Thu Dec 8 12:31:00 2022 +0100

        avcodec/nvenc: fix vbv buffer size in cq mode

        The CQ calculation gets thrown off and behaves very nonsensical
        if it isn't set to 0.

    commit 5746987bad4dd3880cd3a321ef3d970663cd8085
    Author: James Almer
    Date:   Thu Nov 24 20:00:18 2022 -0300

        avcodec/mjpegenc: take into account component count when writing the SOF header size

        Fixes ticket #10069

        Signed-off-by: James Almer
        (cherry picked from commit 100939695307743396e30e6310d2ea9cf42f9aab)

    commit a6e26053c21362bb882932f3cfd1f1dfa2551f1d
    Author: Martin Storsjö
    Date:   Tue Oct 25 13:13:34 2022 +0300

        swscale: aarch64: Fix yuv2rgb with negative strides

        Treat the 32 bit stride registers as signed.

        Alternatively, we could make the stride arguments ptrdiff_t instead
        of int, and changing all of the assembly to operate on these
        registers with their full 64 bit width, but that's a much larger
        and more intrusive change (and risks missing some operation, which
        would clamp the intermediates to 32 bit still).

        Fixes: https://trac.ffmpeg.org/ticket/9985

        Signed-off-by: Martin Storsjö
        (cherry picked from commit cb803a0072cb98945dcd3f1660bd2a975650ce42)
        Signed-off-by: Martin Storsjö

    commit b4a4a3149911b0dd24b6268a04849673e16ef99f
    Author: James Almer
    Date:   Mon Oct 31 17:24:47 2022 -0300

        avcodec/atrac3plus: reorder channels to match the output layout

        The order in which the channels are coded in the bitstream do not always follow
        the native, bitmask-based order of channels both signaled by the WAV container
        and forced by this same decoder. This is the case with layouts containing an
        LFE channel, as it's always coded last.

        Fixes ticket #9964.

        Signed-off-by: James Almer
        (cherry picked from commit 3819719099df601c470e961b9d49b9100c65641b)

    commit fe2d8f1872ac40d3046c6d104d73c5244e251703
    Author: James Almer
    Date:   Wed Oct 26 20:11:04 2022 -0300

        avcodec/aacdec: fix parsing streams with channel configuration 11

        Set the correct amount of tags in tags_per_config[].
        Also, there are no channels that correspond to a side element in this
        configuration, so reflect this in the list of known/supported channel layouts.

        Signed-off-by: James Almer
        (cherry picked from commit 8c7d3b43cc1e41de62733eb90dda7e061778f390)

    commit f5455889fd2a879e1bfeecb7e81c2fd52ebd4baa
    Author: Chema Gonzalez
    Date:   Mon Sep 26 09:11:22 2022 -0700

        libswscale: force a minimum size of the slide for bayer sources

        Bayer sources are read in groups of 2 lines (e.g. for a
        BGGR flavor, the first row contains only B and G samples,
        while the second row contains only G and R samples). They
        need to be read as a whole.

        Signed-off-by: Anton Khirnov
        (cherry picked from commit bf64a75c5ae58ed575303f70b2ab9b2208ded339)
        Signed-off-by: Anton Khirnov

    commit e7dd643419cc395cecca0c84135346b85f2803ed
    Author: Guangyu Sun
    Date:   Thu Sep 29 11:11:34 2022 -0700

        lavf/async: Fix ring_write return value

        This fixes a regression from commit 36117968ad.

        wrapped_url_read() used to be able to return positive number from
        ffurl_read(). It relies on the result to check if EOF is reached in
        async_buffer_task().

        But FIFO callbacks must return 0 on success. This should be handled
        in ring_write() instead.

        Test case:
          ffmpeg -f lavfi -i testsrc -t 1 test.mp4
          ffmpeg -i async:test.mp4

        Signed-off-by: Guangyu Sun
        Signed-off-by: Anton Khirnov
        (cherry picked from commit fc6f7e2a3b2fff6c4df957684d939586a3de448f)
        Signed-off-by: Anton Khirnov

    commit 79bd6a21a04c7c457bfeb53fddc157bbd80cdaac
    Author: Steven Liu
    Date:   Wed Jun 29 00:14:08 2022 +0800

        avcodec/audiotoolboxenc: return AVERROR_EXTERNAL immediately when encode error

        Just return AVERROR_EXTERNAL immediately when encode error.
        The other logic should keep the old behavior before commit 7c05b7951.

        Suggested-By: Zhao Zhili
        Signed-off-by: Steven Liu

    commit 05d6157aab34bc49f23284645a8f34ece870f44d
    Author: Leo Izen
    Date:   Fri Jul 15 13:27:10 2022 -0400

        avcodec/libjxlenc: avoid hard failure with unspecified primaries

        This patch prevents the libjxl encoder wrapper from failing to
        encode images when the input video has untagged primaries. It will
        instead assume BT.709/sRGB primaries and print a warning.

        Signed-off-by: Leo Izen
        (cherry picked from commit 940169b8aab406a8b1ccee4a9705a1e06b76d035)

    commit eacfcbae690f914a4b1b4ad06999f138540cc3d8
    Author: Michael Niedermayer
    Date:   Sat Sep 24 22:59:48 2022 +0200

        Update for 5.1.2

        Signed-off-by: Michael Niedermayer

    commit 6bbe4d1f4f00b627c0c8cad9783eeff66854e936
    Author: Michael Niedermayer
    Date:   Sat Sep 10 23:49:28 2022 +0200

        avcodec/dstdec: Check for overflow in build_filter()

        Fixes: signed integer overflow: 1917019860 + 265558963 cannot be represented in type 'int'
        Fixes: 48798/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_DST_fuzzer-4833165046317056

        Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
        Signed-off-by: Michael Niedermayer
        (cherry picked from commit 8008940da5aa43895fd4574114309c3324249eab)
        Signed-off-by: Michael Niedermayer

    commit 9658d1da5903ff936aba63f986f30dd103a37399
    Author: Michael Niedermayer
    Date:   Sun Sep 18 18:12:11 2022 +0200

        avformat/spdifdec: Use 64bit to compute bit rate

        Fixes: signed integer overflow: 32 * 553590816 cannot be represented in type 'int'
        Fixes: 50993/clusterfuzz-testcase-minimized-ffmpeg_dem_WAV_fuzzer-6564974517944320

        Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
        Signed-off-by: Michael Niedermayer
        (cherry picked from commit 4075f0cec1830a7ac081b1a23bd3f5c4e266fe26)
        Signed-off-by: Michael Niedermayer

    commit 67648acb761a829acb13bf503816380eaa974f36
    Author: Michael Niedermayer
    Date:   Sun Sep 18 16:49:26 2022 +0200

        avformat/rpl: Use 64bit for duration computation

        Fixes: signed integer overflow: 24709512 * 88 cannot be represented in type 'int'
        Fixes: 50993/clusterfuzz-testcase-minimized-ffmpeg_DEMUXER_fuzzer-6737973728641024

        Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
        Signed-off-by: Michael Niedermayer
        (cherry picked from commit 529f64b2eb98e0c3ae4944abd5d01fa7c1def047)
        Signed-off-by: Michael Niedermayer

    commit c54161e199c1bd437d1c2fefb2333a333ed5d5b3
    Author: Michael Niedermayer
    Date:   Sun Sep 18 16:45:30 2022 +0200

        avformat/xwma: Use av_rescale() for duration computation

        Fixes: signed integer overflow: 34242363648 * 538976288 cannot be represented in type 'long'
        Fixes: 50993/clusterfuzz-testcase-minimized-ffmpeg_DEMUXER_fuzzer-6577923913547776

        Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
        Signed-off-by: Michael Niedermayer
        (cherry picked from commit 2c789f753c3657be9041307f9c03749f5ba5a6bb)
        Signed-off-by: Michael Niedermayer

    commit e443e2e210bfa4edd9c44ecb34094229c9e709ea
    Author: Michael Niedermayer
    Date:   Sun Sep 18 16:42:21 2022 +0200

        avformat/sdsdec: Use av_rescale() to avoid intermediate overflow in duration calculation

        Fixes: signed integer overflow: 72128794995445727 * 240 cannot be represented in type 'long'
        Fixes: 50993/clusterfuzz-testcase-minimized-ffmpeg_dem_SDS_fuzzer-6628185583779840

        Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
        Signed-off-by: Michael Niedermayer
        (cherry picked from commit aa8eb1bed075931b0ce0a8bc9a8ff5882830044c)
        Signed-off-by: Michael Niedermayer

    commit ad56da76348564ba4d1e862a348930517eea429b
    Author: Michael Niedermayer
    Date:   Sun Sep 18 16:35:41 2022 +0200

        avformat/sbgdec: Check ts_int in genrate_intervals

        There is probably a better place to check for this, but better
        here than nowhere

        Fixes: signed integer overflow: -9223372036824775808 - 86400000000 cannot be represented in type 'long'
        Fixes: 50993/clusterfuzz-testcase-minimized-ffmpeg_dem_SBG_fuzzer-6601162580688896

        Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
        Signed-off-by: Michael Niedermayer
        (cherry picked from commit 5f529e9147a5c5c8ecf8d5ef0dd569194ce30eed)
        Signed-off-by: Michael Niedermayer

    commit 3e2b970b00a469c9367a472c4f791c25e0e055eb
    Author: Michael Niedermayer
    Date:   Sun Sep 18 16:29:37 2022 +0200

        avformat/sbgdec: clamp end_ts

        Fixes: signed integer overflow: 9223372036851135042 + 15666854 cannot be represented in type 'long'
        Fixes: 50993/clusterfuzz-testcase-minimized-ffmpeg_dem_SBG_fuzzer-6573717339111424

        Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
        Signed-off-by: Michael Niedermayer
        (cherry picked from commit 981f5e46afa3673dfa43eb2bf5017680d5df25dd)
        Signed-off-by: Michael Niedermayer

    commit 77628600aa589c3a03af30d015e9b07b866db00d
    Author: Michael Niedermayer
    Date:   Sun Sep 18 15:06:25 2022 +0200

        avformat/rmdec: check tag_size

        Fixes: signed integer overflow: -2147483648 - 8 cannot be represented in type 'int'
        Fixes: 50993/clusterfuzz-testcase-minimized-ffmpeg_dem_RM_fuzzer-6598073725353984

        Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
        Signed-off-by: Michael Niedermayer
        (cherry picked from commit 2cb7ee8a36bddd3425897135db514ca62fec6e44)
        Signed-off-by: Michael Niedermayer

    commit de79299bf049fcb7453697ba8b2ca5c7316187f9
    Author: Michael Niedermayer
    Date:   Sun Sep 18 14:47:25 2022 +0200

        avformat/nutdec: Check fields

        Fixes: signed integer overflow: -2147483648 - 1 cannot be represented in type 'int'
        Fixes: 50993/clusterfuzz-testcase-minimized-ffmpeg_dem_NUT_fuzzer-6566001610719232

        Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
        Signed-off-by: Michael Niedermayer
        (cherry picked from commit 2c146406eac06f3d3cd3d981c29e7affd834cb4d)
        Signed-off-by: Michael Niedermayer

    commit 1c3c25491a8f84074da6d1d6ff42a14d5c11c654
    Author: Michael Niedermayer
    Date:   Sun Sep 18 13:38:21 2022 +0200

        avformat/flvdec: Use 64bit for sum_flv_tag_size

        Fixes: signed integer overflow: 2138820085 + 16130322 cannot be represented in type 'int'
        Fixes: 50993/clusterfuzz-testcase-minimized-ffmpeg_dem_LIVE_FLV_fuzzer-6704728165187584

        Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
        Signed-off-by: Michael Niedermayer
        (cherry picked from commit 7124f10c1d521096042ba3c9c519828147f78c46)
        Signed-off-by: Michael Niedermayer

    commit 740a71b58362e536f43b51ed3c66ae8339f2554d
    Author: Michael Niedermayer
    Date:   Sat Sep 17 22:55:24 2022 +0200

        avformat/jacosubdec: Fix overflow in get_shift()

        Fixes: 50993/clusterfuzz-testcase-minimized-ffmpeg_dem_JACOSUB_fuzzer-6722544461283328
        Fixes: signed integer overflow: 48214448 * 60 cannot be represented in type 'int'

        Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
        Signed-off-by: Michael Niedermayer
        (cherry picked from commit b1a68127bbcd3d638363fa0249982c494e87c9e2)
        Signed-off-by: Michael Niedermayer

    commit 4038dfc1d13728f4c7cb6bc9eb44a03279aec7f4
    Author: Michael Niedermayer
    Date:   Sat Sep 17 22:46:35 2022 +0200

        avformat/genh: Check nb_channels for IMA ADPCM

        The check could be made more strict

        Fixes: signed integer overflow: 36 * 538976288 cannot be represented in type 'int'
        Fixes: 50993/clusterfuzz-testcase-minimized-ffmpeg_dem_GENH_fuzzer-6539389873815552

        Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
        Signed-off-by: Michael Niedermayer
        (cherry picked from commit 0345a885455dea52fcc570b97f5dc5c75372a39c)
        Signed-off-by: Michael Niedermayer

    commit c38fde3b9d4a3f1b1ff56bf1b5feb7a245f7192b
    Author: Michael Niedermayer
    Date:   Sat Sep 17 22:40:47 2022 +0200

        avformat/dxa: avoid bpc overflows

        Fixes: signed integer overflow: 2147483647 + 32 cannot be represented in type 'int'
        Fixes: 50993/clusterfuzz-testcase-minimized-ffmpeg_dem_DXA_fuzzer-6639823726706688

        Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
        Signed-off-by: Michael Niedermayer
        (cherry picked from commit 93db0f0740cacd64ae07b5e8606b70021e48d364)
        Signed-off-by: Michael Niedermayer

    commit 48acb06c7830a44a641e545b8eb079b47987ac62
    Author: Michael Niedermayer
    Date:   Sat Sep 17 21:54:31 2022 +0200

        avformat/dhav: Use 64bit seek_back

        Fixes: negation of -2147483648 cannot be represented in type 'int'; cast to an unsigned type to negate this value to itself
        Fixes: 50993/clusterfuzz-testcase-minimized-ffmpeg_dem_DHAV_fuzzer-6604736532447232

        Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
        Signed-off-by: Michael Niedermayer
        (cherry picked from commit 10453f5192869b63b071aee3962ae2c712f9bfd3)
        Signed-off-by: Michael Niedermayer

    commit ef0a5051262e8fc237601a3def4bbdc9aa4195ac
    Author: Michael Niedermayer
    Date:   Sat Sep 17 21:48:43 2022 +0200

        avformat/cafdec: Check that nb_frasmes fits within 64bit

        Fixes: signed integer overflow: 1099511693312 * 538976288 cannot be represented in type 'long'
        Fixes: 50993/clusterfuzz-testcase-minimized-ffmpeg_dem_CAF_fuzzer-6565048815845376

        Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
        Signed-off-by: Michael Niedermayer
        (cherry picked from commit d4bb4e375975dc0d31d5309106cf6ee0ed75140f)
        Signed-off-by: Michael Niedermayer

    commit 01834eaec23930295c29de41f25cb112dd646f03
    Author: Michael Niedermayer
    Date:   Sat Sep 17 21:30:55 2022 +0200

        avformat/asfdec_o: Limit packet offset

        avoids overflows with it

        Fixes: signed integer overflow: 9223372036846866010 + 4294967047 cannot be represented in type 'long'
        Fixes: 50993/clusterfuzz-testcase-minimized-ffmpeg_dem_ASF_O_fuzzer-6538296768987136
        Fixes: 50993/clusterfuzz-testcase-minimized-ffmpeg_dem_ASF_O_fuzzer-657169555665715

        Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
        Signed-off-by: Michael Niedermayer
        (cherry picked from commit 736e9e69d5dbbe1d81885dfef59917eb915d2f96)
        Signed-off-by: Michael Niedermayer

    commit 08047db178ecef92195127e44aa17e7977aec3db
    Author: Michael Niedermayer
    Date:   Sat Sep 17 21:24:49 2022 +0200

        avformat/apm: Use 64bit for bit_rate computation

        Fixes: signed integer overflow: -1155522528 * 4 cannot be represented in type 'int'
        Fixes: 50993/clusterfuzz-testcase-minimized-ffmpeg_dem_APM_fuzzer-6580670570299392

        Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
        Signed-off-by: Michael Niedermayer
        (cherry picked from commit 5b23cab5c769d6611a3fe111546d65809046a4d8)
        Signed-off-by: Michael Niedermayer

    commit ca55032020b1b441a493c2f4e2b69ce17d2438d2
    Author: Michael Niedermayer
    Date:   Sat Sep 17 21:19:53 2022 +0200

        avformat/ape: Check frames size

        Fixes: signed integer overflow: 9223372036854775806 + 3 cannot be represented in type 'long'
        Fixes: 50993/clusterfuzz-testcase-minimized-ffmpeg_dem_APE_fuzzer-6389264140599296

        Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
        Signed-off-by: Michael Niedermayer
        (cherry picked from commit d0349c9929e2891c90011a83152624d5cf18e628)
        Signed-off-by: Michael Niedermayer

    commit c9bb4e3bcce44acbd4d9055130f0e7bee44246da
    Author: Michael Niedermayer
    Date:   Sat Sep 17 23:15:56 2022 +0200

        avformat/icodec: Check nb_pal

        Fixes: signed integer overflow: 538976288 * 4 cannot be represented in type 'int'
        Fixes: 50993/clusterfuzz-testcase-minimized-ffmpeg_dem_ICO_fuzzer-6690068904935424

        Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
        Reviewed-by: Peter Ross
        Signed-off-by: Michael Niedermayer
        (cherry picked from commit db73ae0dc114aa6fae08e69f977944f056a24995)
        Signed-off-by: Michael Niedermayer

    commit 14787c60eca221deae7c7a8e3403cddd77152350
    Author: Michael Niedermayer
    Date:   Sat Sep 17 16:32:09 2022 +0200

        avformat/aiffdec: Use 64bit for block_duration use

        Fixes: signed integer overflow: 3 * -2147483648 cannot be represented in type 'int'
        Fixes: 50993/clusterfuzz-testcase-minimized-ffmpeg_dem_AIFF_fuzzer-6668935979728896

        Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
        Reviewed-by: Paul B Mahol
        Signed-off-by: Michael Niedermayer
        (cherry picked from commit 9303ba272e988d87084880c57056b750cc5ffd08)
        Signed-off-by: Michael Niedermayer

    commit 4143d0a33a8f5eb16e36367975cea3dc3f8ca8fc
    Author: Michael Niedermayer
    Date:   Sat Sep 17 16:32:08 2022 +0200

        avformat/aiffdec: Check block_duration

        Fixes: signed integer overflow: 3 * -2147483648 cannot be represented in type 'int'
        Fixes: 50993/clusterfuzz-testcase-minimized-ffmpeg_dem_AIFF_fuzzer-6668935979728896

        Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
        Reviewed-by: Paul B Mahol
        Signed-off-by: Michael Niedermayer
        (cherry picked from commit 1c2b6265c87417033f990fa4a14da9d4008320a4)
        Signed-off-by: Michael Niedermayer

    commit a3d59e33d91402325f70b55f4a9c185a3d01e5a6
    Author: Michael Niedermayer
    Date:   Wed Sep 21 18:23:30 2022 +0200

        avformat/mxfdec: only probe max run in

        Suggested-by: Tomas Härdin
        Signed-off-by: Michael Niedermayer
        (cherry picked from commit 1182bbb2c3226260ed672920251e3410bde8c6c9)
        Signed-off-by: Michael Niedermayer

    commit 89c2911a3cae1e35967c3a442c0e3106fe6b2004
    Author: Michael Niedermayer
    Date:   Sun Sep 18 14:28:03 2022 +0200

        avformat/mxfdec: Check run_in is within 65536

        Fixes: signed integer overflow: 9223372036854775807 - -2146905566 cannot be represented in type 'long'
        Fixes: 50993/clusterfuzz-testcase-minimized-ffmpeg_dem_MXF_fuzzer-6570996594769920

        Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
        Signed-off-by: Michael Niedermayer
        (cherry picked from commit 7786097825d9e3f02b4574c1924c28818eb83340)
        Signed-off-by: Michael Niedermayer

    commit 04a2dd80549450a90bc6d92d5d8821d05766b496
    Author: Michael Niedermayer
    Date:   Sun Sep 18 23:42:02 2022 +0200

        avcodec/mjpegdec: Check for unsupported bayer case

        Fixes: out of array access
        Fixes: 51462/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_TIFF_fuzzer-662559341582745

        Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
        Signed-off-by: Michael Niedermayer
        (cherry picked from commit dd81cc22b3dd5bd6badf012b4fe4c19e062650f4)
        Signed-off-by: Michael Niedermayer

    commit c15b355eb5a653b150fc58a01bca49ecd4116bfd
    Author: Michael Niedermayer
    Date:   Sun Sep 11 00:30:42 2022 +0200

        avcodec/apedec: Fix integer overflow in filter_3800()

        Fixes: signed integer overflow: -2147448926 + -198321 cannot be represented in type 'int'
        Fixes: 48798/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_APE_fuzzer-5739619273015296
        Fixes: 48798/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_APE_fuzzer-6744428485672960

        Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
        Signed-off-by: Michael Niedermayer
        (cherry picked from commit f05247f6a4698c14f1cd523daa90188f50dcf6ad)
        Signed-off-by: Michael Niedermayer

    commit 5a944b3a986899736b8a0c280fb2f482ec998537
    Author: Michael Niedermayer
    Date:   Sun Sep 11 00:11:20 2022 +0200

        avcodec/tta: Check 24bit scaling for overflow

        Fixes: signed integer overflow: -8427924 * 256 cannot be represented in type 'int'
        Fixes: 48798/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_TTA_fuzzer-5409428670644224

        Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
        Signed-off-by: Michael Niedermayer
        (cherry picked from commit 3993345f915bccceee315f44d412445346990e14)
        Signed-off-by: Michael Niedermayer

    commit 03c168869e5e643ecab2e26b82e849197c87f056
    Author: Michael Niedermayer
    Date:   Sat Sep 10 23:58:36 2022 +0200

        avcodec/mobiclip: Check quantizer for overflow

        Fixes: signed integer overflow: 127 + 2147483536 cannot be represented in type 'int'
        Fixes: 48798/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_MOBICLIP_fuzzer-6014034970804224

        Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
        Signed-off-by: Michael Niedermayer
        (cherry picked from commit 677e27a9afa7305a918336699b377fd5b42cc299)
        Signed-off-by: Michael Niedermayer

    commit 4e07d4a1eec9e9bda901ba0ade8e08603a1e5046
    Author: Michael Niedermayer
    Date:   Sat Sep 10 23:54:17 2022 +0200

        avcodec/exr: Check preview psize

        Fixes: signed integer overflow: 17121181824 * 538976288 cannot be represented in type 'long long'
        Fixes: 48798/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_EXR_fuzzer-5915330316206080

        Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
        Signed-off-by: Michael Niedermayer
        (cherry picked from commit ac26712e35f5ebc726d1be14bb4a420949e66604)
        Signed-off-by: Michael Niedermayer

    commit 8f483d42e04d11d6e1d3d159ca975bb29fb6c719
    Author: Michael Niedermayer
    Date:   Mon Sep 12 19:55:09 2022 +0200

        avcodec/tiff: Fix loop detection

        Fixes regression with tickets/4364/L1004220.DNG

        Reviewed-by: Paul B Mahol
        Signed-off-by: Michael Niedermayer
        (cherry picked from commit 43a4854510a3d596e114d899177a5b3b323ca9fb)
        Signed-off-by: Michael Niedermayer

    commit 47e510aa0c09bd02536c8359deadee8aa36e9794
    Author: Michael Niedermayer
    Date:   Fri Sep 9 00:32:23 2022 +0200

        libavformat/hls: Free keys

        Fixes: memleak
        Fixes: 50703/clusterfuzz-testcase-minimized-ffmpeg_dem_HLS_fuzzer-6399058578636800

        Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
        Reviewed-by: Steven Liu
        Signed-off-by: Michael Niedermayer
        (cherry picked from commit d32a9f3137c91de86547601a38fea0693c3497f1)
        Signed-off-by: Michael Niedermayer

    commit b877696f163237346719038928b3a82a7e4999e9
    Author: Michael Niedermayer
    Date:   Fri Jun 10 23:09:09 2022 +0200

        avcodec/fmvc: Move frame allocation to a later stage

        This way more things are checked before allocation

        Signed-off-by: Michael Niedermayer
        (cherry picked from commit 9783749c66bf6ca2ce7a6db4c74957fe77cbe803)
        Signed-off-by: Michael Niedermayer

    commit 82207ef2661bb4451082edde6ca3d2480a725906
    Author: Michael Niedermayer
    Date:   Thu Jul 21 20:15:06 2022 +0200

        avfilter/vf_showinfo: remove backspaces

        They mess with storing editing and comparing the results

        Signed-off-by: Michael Niedermayer
        (cherry picked from commit 31581ae7ee6d007f2f2dcd16de5df991ba7aa1b6)
        Signed-off-by: Michael Niedermayer

    commit 58c5976ca0829c94402a83b2940237bf7a7c067b
    Author: Michael Niedermayer
    Date:   Thu Aug 18 23:41:57 2022 +0200

        avcodec/speedhq: Check width

        Fixes: out of array access
        Fixes: 50014/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_SPEEDHQ_fuzzer-4748914632294400

        Alternatively the buffer size can be increased

        Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
        Signed-off-by: Michael Niedermayer
        (cherry picked from commit f0395f9ef6051315973f1fdded1804f81458566d)
        Signed-off-by: Michael Niedermayer

    commit 344c1134a93ef81d485b7b8b9c8fd5a1aae803e2
    Author: Michael Niedermayer
    Date:   Mon Jun 13 02:01:20 2022 +0200

        avcodec/bink: disallow odd positioned scaled blocks

        Fixes: out of array access
        Fixes: 47911/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_BINK_fuzzer-6194020855971840

        Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
        Reviewed-by: Anton Khirnov
        Signed-off-by: Michael Niedermayer
        (cherry picked from commit b14104a6376cd774b08cbe5fda56b34320a41b2e)
        Signed-off-by: Michael Niedermayer

    commit 746a21063065535d6b758a46e86df411bce69d9f
    Author: James Almer
    Date:   Wed Sep 21 00:01:40 2022 -0300

        avformat/cafenc: derive Opus frame size from the relevant stream parameters

        Use the stream duration as last resort, as an off-by-one result of the
        "st->duration / (caf->packets - 1)" calculation can break playback on some
        devices.
        Also, don't write the sample_rate value propagated by encoders like libopus.
        The sample rate of the audio fed to it is irrelevant after being encoded.

        Fixes ticket #9930.

        Signed-off-by: James Almer

    commit f202a1fdf75d0e7f48a2e8d63c2d390cc4b19c85
    Author: Andreas Rheinhardt
    Date:   Tue Sep 20 22:08:47 2022 +0200

        avformat/dashdec: Fix crash on invalid input/ENOMEM, fix leak

        In case a SupplementalProperty node exists in an adaptationset,
        it is searched for a "schemeIdUri" property via xmlGetProp().
        Whatever xmlGetProp() returns is then compared via av_strcasecmp()
        to a string literal. xmlGetProp() can return NULL, namely in case
        no "schemeIdUri" exists and (given that this string is allocated)
        presumably also on allocation failure. No check for NULL is done,
        so this may crash.

        Furthermore, the string returned by xmlGetProp() needs to be freed
        with xmlFree(), but this is not done either.

        This commit fixes both of these issues; they existed since this code
        has been added in 10d008f0fd9e713e290f626300d66382ad786c49.

        This has been found while investigating ticket #9697. The continuous
        leaks might very well be the reason behind the observed slowdown.

        Reviewed-by: Steven Liu
        Signed-off-by: Andreas Rheinhardt
        (cherry picked from commit 14b3830b33075e92f8e2766c0c53e8b6bc570c6c)

    commit 9772ba1b6af5bca50701f3958bcd6d15414ac45a
    Author: Anton Khirnov
    Date:   Thu Sep 15 14:53:36 2022 +0200

        lavc/videotoolbox: do not pass AVCodecContext to decoder output callback

        The opaque parameter for the callback is set in videotoolbox_start(),
        called when the hwaccel is initialized. When frame threading is used,
        avctx will be the context corresponding to the frame thread currently
        doing the decoding. Using this same codec context in all subsequent
        invocations of the decoder callback (even those triggered by a different
        frame thread) is unsafe, and broken after
        cc867f2c09d2b69cee8a0eccd62aff002cbbfe11, since each frame thread now
        cleans up its hwaccel state after decoding each frame.

        Fix this by passing hwaccel_priv_data as the opaque parameter, which
        exists in a single instance forwarded between all frame threads.

        The only other use of AVCodecContext in the decoder output callback is
        as a logging context. For this purpose, store a logging context in
        hwaccel_priv_data.

        (cherry picked from commit d7f4ad88a0df3c1339e142957bf2c40cd056b8ce)
        Signed-off-by: Anton Khirnov

    commit 96c78e50a66a3b443eb2f237e2554ab84b8a12ce
    Author: Anton Khirnov
    Date:   Mon Sep 19 14:50:30 2022 +0200

        lavc/pthread_frame: always transfer stashed hwaccel state

        Fixes assertion failures after avcodec_flush_buffers(), where
        stashed hwaccel state is present, but prev_thread is NULL.

        Found-by: Wang Bin
        (cherry picked from commit c504fb869264fbd8fba6e81c186b2f2848b62e26)
        Signed-off-by: Anton Khirnov

    commit 2d04a18264e6e9b7f548954c5d1c51c3ab01b038
    Author: James Cowgill
    Date:   Sun Aug 25 09:18:00 2019 +0100

        avcodec/arm/sbcenc: avoid callee preserved vfp registers

        When compiling FFmpeg with GCC-9, some very random segfaults were
        observed in code which had previously called down into the SBC encoder
        NEON assembly routines. This was caused by these functions clobbering
        some of the vfp callee saved registers (d8 - d15 aka q4 - q7). GCC was
        using these registers to save local variables, but after these
        functions returned, they would contain garbage.

        Fix by reallocating the registers in the two affected functions in
        the following way:
         ff_sbc_analyze_4_neon: q2-q5 => q8-q11, then q1-q4 => q8-q11
         ff_sbc_analyze_8_neon: q2-q9 => q8-q15

        The reason for using these replacements is to keep closely related
        sets of registers consecutively numbered which hopefully makes the
        code more easy to follow. Since this commit only reallocates
        registers, it should have no performance impact.

        Signed-off-by: James Cowgill
        Signed-off-by: Martin Storsjö
        (cherry picked from commit 50a4dff69f6477b06f00eae1cac2a53ae22fe9a5)
        Signed-off-by: Martin Storsjö

    commit 425ffaec23fbe79f2d8150d0bc5eafb6668e3c5d
    Author: James Almer
    Date:   Sat Sep 10 00:36:34 2022 -0300

        avformat/riffdec: don't unconditionally overwrite WAVEFORMATEXTENSIBLE layout

        Do it only if the value conflicts with the previous channels value.

        Fixes ticket #9912

        Signed-off-by: James Almer
        (cherry picked from commit 60d8c2019f59fcbeb597c900a56c8c4cd9ec8838)

    commit fcbd9ec24895b53bfa6a206aed29b5b04b68c41b
    Author: James Almer
    Date:   Sun Sep 4 23:43:04 2022 -0300

        avfilter/vf_scale: overwrite the width and height expressions with the original values

        Instead of the potentially adjusted ones. Otherwise, if config_props() is
        called again and if using force_original_aspect_ratio, the already adjusted
        values could be altered again.

        Example command line
        scale=size=1920x1000:force_original_aspect_ratio=decrease:force_divisible_by=2

        user value 1920x1000 -> 1920x798 on init_dict() -> 1918x798 on frame
        change when eval_mode == EVAL_MODE_INIT, which after e645a1ddb9 could be at the
        very first frame.

        Signed-off-by: James Almer
        (cherry picked from commit d9e3cb7e73c77ccddc4d29ed5c1be3920f72c226)

    commit 35aa7e70e7ec350319e7634a30d8d8aa1e6ecdda
    Author: Anton Khirnov
    Date:   Fri Sep 2 22:21:27 2022 +0200

        lavc/pthread_frame: avoid leaving stale hwaccel state in worker threads

        This state is not refcounted, so make sure it always has a well-defined
        owner.

        Remove the block added in 091341f2ab5bd35ca1a2aae90503adc74f8d3523, as
        this commit also solves that issue in a more general way.

        (cherry picked from commit cc867f2c09d2b69cee8a0eccd62aff002cbbfe11)
        Signed-off-by: Anton Khirnov

    commit 4424a6223b5a81977b9af4aac03c32f69915dab4
    Author: Andreas Rheinhardt
    Date:   Mon Sep 5 01:35:19 2022 +0200

        avutil/tests/.gitignore: Add channel_layout testtool

        Reviewed-by: James Almer
        Signed-off-by: Andreas Rheinhardt
        (cherry picked from commit f89949afed7a538db603f32d463fe9547bc439a7)

    commit 1bad30dbe34f2d100b43e8f773d3fe0b5eb23523
    Author: Michael Niedermayer
    Date:   Wed Aug 31 18:10:03 2022 +0200

        Update for 5.1.1

        Signed-off-by: Michael Niedermayer

    commit 5c0309d2788b946d05f50b2bcdb230c0cf2ae916
    Author: Michael Niedermayer
    Date:   Wed Aug 31 01:21:38 2022 +0200

        avformat/asfdec_o: limit recursion depth in asf_read_unknown()

        The threshold of 5 is arbitrary, both smaller and larger should work fine

        Fixes: Stack overflow
        Fixes: 50603/clusterfuzz-testcase-minimized-ffmpeg_dem_ASF_O_fuzzer-6049302564175872

        Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
        Signed-off-by: Michael Niedermayer
        (cherry picked from commit 1f1a368169ef9d945dc4b4764f5c60ba9bbc9134)
        Signed-off-by: Michael Niedermayer

    commit 6f53f0d09ea4c9c7f7354f018a87ef840315207d
    Author: Michael Niedermayer
    Date:   Thu Jul 28 14:42:43 2022 +0200

        avformat/mov: Check count sums in build_open_gop_key_points()

        Fixes: ffmpeg.md
        Fixes: Out of array access
        Fixes: CVE-2022-2566

        Found-by: Andy Nguyen
        Found-by: 3pvd <3pvd@google.com>
        Reviewed-by: Andy Nguyen
        Signed-off-by: Michael Niedermayer
        (cherry picked from commit c953baa084607dd1d84c3bfcce3cf6a87c3e6e05)
        Signed-off-by: Michael Niedermayer

    commit 30bd4831e6213cee64ed950d69d1732194cc6464
    Author: Michael Niedermayer
    Date:   Tue Aug 9 21:49:04 2022 +0200

        doc/git-howto.texi: Document commit signing

        Signed-off-by: Michael Niedermayer
        (cherry picked from commit ced0dc807eb67516b341d68f04ce5a87b02820de)
        Signed-off-by: Michael Niedermayer

    commit 5a2bb107331abc0126f35b08a151bbfb276cf92b
    Author: Michael Niedermayer
    Date:   Mon Aug 22 22:10:09 2022 +0200

        libavcodec/8bps: Check that line lengths fit within the buffer

        Fixes: Timeout
        Fixes: undefined pointer arithmetic
        Fixes: 50330/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_EIGHTBPS_fuzzer-5436287485607936

        Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
        Signed-off-by: Michael Niedermayer
        (cherry picked from commit 2316d5ec1a95b13ff9a0ce80409fa367a041966d)
        Signed-off-by: Michael Niedermayer

    commit 550fd2212df136f72b0d7c34190320ff7b9d299c
    Author: Michael Niedermayer
    Date:   Mon Aug 22 21:29:55 2022 +0200

        avcodec/midivid: Perform lzss_uncompress() before ff_reget_buffer()

        This would avoid regeting the frame on lzss errors

        Signed-off-by: Michael Niedermayer
        (cherry picked from commit 628fb97efb0b6202e56fab89670406261bf86d85)
        Signed-off-by: Michael Niedermayer

    commit 1cd07b178b02614b1f13e8b9f15c13edf3dbdf90
    Author: Michael Niedermayer
    Date:   Mon Aug 22 20:31:32 2022 +0200

        libavformat/iff: Check for overflow in body_end calculation

        Fixes: signed integer overflow: -6322983228386819992 - 5557477266266529857 cannot be represented in type 'long'
        Fixes: 50112/clusterfuzz-testcase-minimized-ffmpeg_dem_IFF_fuzzer-6329186221948928

        Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
        Signed-off-by: Michael Niedermayer
        (cherry picked from commit bcb46903040e5a5199281f4ad0a1fdaf750ebc37)
        Signed-off-by: Michael Niedermayer

    commit 59afc50ab4a547ef20320170b7c784fc3b9fb277
    Author: Michael Niedermayer
    Date:   Thu Aug 18 00:22:41 2022 +0200

        avformat/avidec: Prevent entity expansion attacks

        Fixes: Timeout
        Fixes no testcase, this is the same idea as similar attacks against XML parsers

        Signed-off-by: Michael Niedermayer
        (cherry picked from commit f3e823c2aa04d4f5571a5e04c27a244890704c8d)
        Signed-off-by: Michael Niedermayer

    commit 54971af920f6dcac620024344dd431da58dfd8c1
    Author: Michael Niedermayer
    Date:   Mon Aug 15 00:02:37 2022 +0200

        avcodec/h263dec: Sanity check against minimal I/P frame size

        Fixes: Timeout
        Fixes: 49718/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_MPEG4_fuzzer-4874987894341632

        Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
        Signed-off-by: Michael Niedermayer
        (cherry picked from commit ca4ff9c21cb77e024fa4ff5889826a8bee4d0e0a)
        Signed-off-by: Michael Niedermayer

    commit 8cf035cd88ac0ca54b1be92cd2fb1e4b7f2992ae
    Author: Michael Niedermayer
    Date:   Sun Aug 14 23:39:56 2022 +0200

        avcodec/hevcdec: Check s->ref in the md5 path similar to hwaccel

        This is somewhat redundant with the is_decoded check. Maybe
        there is a nicer solution

        Fixes: Null pointer dereference
        Fixes: 49584/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_HEVC_fuzzer-5297367351427072

        Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
        Signed-off-by: Michael Niedermayer
        (cherry picked from commit 3b51e1992289383aa9f083c88e153e34b6412c89)
        Signed-off-by: Michael Niedermayer

    commit c8ee3f9f6fc515b8fa0a769ed783c65069a91856
    Author: Michael Niedermayer
    Date:   Sun Aug 14 23:30:22 2022 +0200

        avcodec/mpegaudiodec_template: use unsigned shift in handle_crc()

        Fixes: left shift of 192 by 24 places cannot be represented in type 'int'
        Fixes: 49577/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_MP1FLOAT_fuzzer-5205996678545408

        Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
        Signed-off-by: Michael Niedermayer
        (cherry picked from commit 7086491fa0eca4ad647b5c9fae6d07344cc44ec0)
        Signed-off-by: Michael Niedermayer

    commit fdc5e2329a5ba12f10c709dc7737c51819a2fa83
    Author: Michael Niedermayer
    Date:   Sun Mar 22 00:54:58 2020 +0100

        avformat/subviewerdec: Make read_ts() more flexible

        Fixes: signed integer overflow: -1948269928 * 10 cannot be represented in type 'int'
        Fixes: 49451/clusterfuzz-testcase-minimized-ffmpeg_dem_SUBVIEWER_fuzzer-6344614822412288

        Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
        (cherry picked from commit 58a8e739ef93f8b42f8139e73227508256929d20)
        Signed-off-by: Michael Niedermayer

    commit 9eb36ab0a1135327982afb8fa6f23e60cf50906c
    Author: Michael Niedermayer
    Date:   Sat Aug 13 22:47:31 2022 +0200

        avcodec/mjpegdec: bayer and rct are incompatible

        Fixes: out of array read
        Fixes: 49434/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_TIFF_fuzzer-5208501080686592

        Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
        Signed-off-by: Michael Niedermayer
        (cherry picked from commit a44f5a521227adc7be2f78b411f56da1a4d98704)
        Signed-off-by: Michael Niedermayer

    commit 5d6b733277c68ebe3eeb8bc96a14b59d7e585794
    Author: Michael Niedermayer
    Date:   Tue Aug 9 21:53:32 2022 +0200

        MAINTAINERS: Add ED25519 key for signing my commits in the future

        Signed-off-by: Michael Niedermayer
        (cherry picked from commit 05225180bea208dfd81efac327e429711a963697)
        Signed-off-by: Michael Niedermayer

    commit bc7df3bc64c04476b816404eb3e9c22997515c06
    Author: Andreas Rheinhardt
    Date:   Sat Aug 20 21:21:40 2022 +0200

        avcodec/pngdec: Fix APNG_DISPOSE_OP_BACKGROUND

        APNG works with a single reference frame and an output frame.
        According to the spec, decoding APNG works by decoding
        the current IDAT/fdAT chunks (which decodes to a rectangular
        subregion of the whole image region), followed by either
        overwriting the region of the output frame with the newly
        decoded data or by blending the newly decoded data with
        the data from the reference frame onto the current subregion
        of the output frame. The remainder of the output frame
        is just copied from the reference frame.
        Then the reference frame might be left untouched
        (APNG_DISPOSE_OP_PREVIOUS), it might be replaced by the output
        frame (APNG_DISPOSE_OP_NONE) or the rectangular subregion
        corresponding to the just decoded frame has to be reset
        to black (APNG_DISPOSE_OP_BACKGROUND).

        The latter case is not handled correctly by our decoder:
        It only performs resetting the rectangle in the reference frame
        when decoding the next frame; and since commit
        b593abda6c642cb0c3959752dd235c2faf66837f it does not reset
        the reference frame permanently, but only temporarily (i.e.
        it only affects decoding the frame after the frame with
        APNG_DISPOSE_OP_BACKGROUND). This is a problem if the
        frame after the APNG_DISPOSE_OP_BACKGROUND frame uses
        APNG_DISPOSE_OP_PREVIOUS, because then the frame after
        the APNG_DISPOSE_OP_PREVIOUS frame has an incorrect reference
        frame. (If it is not followed by an APNG_DISPOSE_OP_PREVIOUS
        frame, the decoder only keeps a reference to the output frame,
        which is ok.)

        This commit fixes this by being much closer to the spec
        than the earlier code: Resetting the background is no longer
        postponed until the next frame; instead it is applied to
        the reference frame.

        Fixes ticket #9602.

        (For multithreaded decoding it was actually already broken
        since commit 5663301560d77486c7f7c03c1aa5f542fab23c24.)

        Signed-off-by: Andreas Rheinhardt

    commit db2d52e1ff74c89ee5b3da3c969e39a7135a17bf
    Author: James Almer
    Date:   Sun Aug 21 13:08:04 2022 -0300

        avcodec/libvpx: fix assembling vp9 packets with alpha channel

        There's no warranty that vpx_codec_encode() will generate a list with the same
        amount of packets for both the yuv planes encoder and the alpha plane encoder,
        so queueing packets based on what the main encoder returns will fail when the
        amount of packets in both lists differ.
        Queue all data packets for every vpx_codec_encode() call from both encoders
        before attempting to assemble output AVPackets out of them.

        Fixes ticket #9884

        Reviewed-by: Vignesh Venkatasubramanian
        Signed-off-by: James Almer
        (cherry picked from commit 9c7a8a8546e0bea9a32174cb40cefda5ddc45001)

    commit f28cb0c1a8d45bf64953da6331ae4645a0c5d75d
    Author: James Almer
    Date:   Sun Aug 21 15:53:10 2022 -0300

        fftools/ffmpeg_opt: try to propagate the requested output channel layout

        Don't silently replace it with the default layout for the amount of channels
        from the requested layout.

        Should fix ticket #9869

        Signed-off-by: James Almer
        (cherry picked from commit f5a663f2a9d05eddbd50609b45d92d2e39b3f9ed)

    commit 07286d82f79fe76bf59ec4888dee4bca2022fea1
    Author: James Almer
    Date:   Mon Aug 22 00:05:02 2022 -0300

        avcodec/libsvtav1: properly initialize the flush EbBufferHeaderType struct

        Should fix ticket #9834

        Signed-off-by: James Almer
        (cherry picked from commit fb70e0611bd7b634c1bc08096072f68659cc0a55)

    commit 0143b0d964ebdbc6760b182abcf8e4c94695dfa6
    Author: Hendrik Leppkes
    Date:   Thu Aug 18 21:00:28 2022 +0200

        configure: enable the av1_frame_split bsf for the av1 decoder

        The BSF is required to make use of the AV1 decoder, thus configure
        should also ensure it is built.

    commit 6ee1996721710a6b15d5664446964d7b835ff3a6
    Author: James Almer
    Date:   Sun Aug 21 17:46:36 2022 -0300

        swresample/swresample: fill the correct buffer to print the output layout string

        Signed-off-by: James Almer

    commit 4e4cc6e56a899f6b4302e80dbcd6b4462f340905
    Author: Gyan Doshi
    Date:   Mon Aug 15 23:56:16 2022 +0530

        ffprobe: restore reporting error code for failed inputs

        c11fb46731 led to a regression whereby the return code for missing
        input or input probe is overridden by writer close return code and
        hence not conveyed in the exit code.

    commit 8479e2fc8bdfc80ed7f376594c3833c01d970030
    Author: Derek Buitenhuis
    Date:   Wed Aug 10 23:17:58 2022 +0100

        ipfsgateway: Remove default gateway

        A gateway can see everything, and we should not be shipping a hardcoded
        default from a third party company; it's a security risk.

        Signed-off-by: Derek Buitenhuis
        (cherry picked from commit 412922cc6fa790897ef6bb2be5d6f9a5f030754d)

    commit 1ad802c45c9a57f1937862536955bdc7f8235707
    Author: Andreas Rheinhardt
    Date:   Sat Aug 6 20:07:02 2022 +0200

        avcodec/libspeexdec: Fix use of uninitialized value

        Regression since 97d9a3293854eda84f05c22e2eaefae7406ac969.
        Fixes Coverity issue #1503072.

        Signed-off-by: Andreas Rheinhardt
        (cherry picked from commit eb608fd0b00424eacb4dc85f23227e186289fb48)

    commit ffaf6061309b581eed1291d747fa419cab0d7565
    Author: Stephen Hutchinson
    Date:   Sun Aug 7 21:25:31 2022 -0400

        avformat/avisynth: use ch_layout.nb_channels for channel count

        Fixes deprecation warning

        Signed-off-by: James Almer
        (cherry picked from commit dc9843d82932ba93f616f5e2893fd5c2576468c3)

    commit aba74d7843dabeb4babb0b86b817d988581ed5fa
    Author: Andreas Rheinhardt
    Date:   Mon Aug 1 14:41:38 2022 +0200

        fate/lavf-image: Disable file checksums for exr tests

        The generated files are endian-dependent, so no checksums
        may be part of the ref files.

        Fixes ticket #9854.

        Tested-by: Sebastian Ramacher
        Signed-off-by: Andreas Rheinhardt
        (cherry picked from commit fe211aebbf2988f7a6588cf9f45277ca74b92763)

    commit 17426f84f617c6422abc73b1176b11ed2e8ba870
    Author: Andreas Rheinhardt
    Date:   Mon Aug 1 14:24:51 2022 +0200

        tests/fate-run: Allow to skip file checksums for lavf_image

        The output file (even the filesize) of the recently added
        EXR tests depends on the endianness; therefore checksums
        of these files must not be part of the ref file. Therefore
        this commit adds an option (unused for now) to disable these
        checksums on a per-test basis.

        In order to avoid having to check twice, the checksum and
        the filesize info are moved to immediately follow one another;
        this results into updates to the ref files of all lavf-image tests.

        Signed-off-by: Andreas Rheinhardt
        (cherry picked from commit 4fb8741c4670965eaf1f78d6122c6bdfdf1f3358)

    commit 80d1b8938eb227f0e9efde91050836b1e9a051a9
    Author: Andreas Rheinhardt
    Date:   Sun Jul 24 21:34:58 2022 +0200

        fate/imf: Rename IMF fate-target

        It conflicts with the name of the test using the testtool
        in libavformat.mak.

        Fixes ticket #9841.

        Reviewed-by: Pierre-Anthony Lemieux
        Signed-off-by: Andreas Rheinhardt
        (cherry picked from commit 3b923116e5a348945281b8d827074ac8f897464d)

    commit 915ef932a3cd4679fa58d6c514992d90e5fa6930
    Author: James Almer
    Date:   Fri Jul 29 18:05:51 2022 -0300

        avcodec/alac: don't fail if channels aren't set during init() when extradata is valid

        The decoder is meant to use it as a fallback if the value in extradata is
        invalid.

        Regression since d199099be.

        Signed-off-by: James Almer

    commit 6d83c5f87651499dbb5d310f7cbd12a25c7d07f9
    Author: Marvin Scholz
    Date:   Sun Jul 24 12:11:49 2022 +0200

        configure: properly require libx264 if enabled

        When libx264 can not be found even though it is enabled, it should error
        out properly instead of silently disabling it.

        (cherry picked from commit 564d7946de56155d1c42165a8b561fcf5028cbbc)

    commit e0723b7e4e22492275d476fcd30d759e1198bc5b
    Author: Michael Niedermayer
    Date:   Fri Jul 22 00:51:32 2022 +0200

        avcodec/hevc_filter: copy_CTB() only within width&height

        Fixes: out of array access
        Fixes: 49271/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_HEVC_fuzzer-5424984922652672

        Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
        Signed-off-by: Michael Niedermayer
        (cherry picked from commit 009ef35d384c3df22d8a8be7416dc9d532e91c52)
        Signed-off-by: Michael Niedermayer

    commit 6fbd4d22859bbf7b8b1d27a722efd8947688b5ce
    Author: Michael Niedermayer
    Date:   Thu Jul 21 23:27:59 2022 +0200

        avcodec/tiff: Check tile_length and tile_width

        Fixes: Division by 0
        Fixes: 49235/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_TIFF_fuzzer-5495613847896064

        Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
        Signed-off-by: Michael Niedermayer
        (cherry picked from commit 76112c2b4167bb3c40503b3334c8b38fd707a8d5)
        Signed-off-by: Michael Niedermayer

    commit fa511b03d3a7d02e4c6bd1e17d12eac2d71fd03c
    Author: Michael Niedermayer
    Date:   Sun Jul 3 00:34:08 2022 +0200

        avcodec/mss4: Check image size with av_image_check_size2()

        Fixes: Timeout
        Fixes: 48418/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_MTS2_fuzzer-4834851466903552

        Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
        Signed-off-by: Michael Niedermayer
        (cherry picked from commit 4e145f1dcdcbe19e8f8e98940dab04e9332a8b5b)
        Signed-off-by: Michael Niedermayer

    commit 5767941df88e75b2c2020e42580abc92478842e2
    Author: Michael Niedermayer
    Date:   Mon Jun 20 01:36:29 2022 +0200

        avformat/flvdec: Check for EOF in index reading

        Fixes: Timeout
        Fixes: 47992/clusterfuzz-testcase-minimized-ffmpeg_dem_LIVE_FLV_fuzzer-6020443879899136

        Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
        Signed-off-by: Michael Niedermayer
        (cherry picked from commit ceff5d7b74cd9ae6055957979d27d289c70a9e1b)
        Signed-off-by: Michael Niedermayer

    commit e6584a3f19c0d6a6d4143c8d8a3d4fe9222d32aa
    Author: Michael Niedermayer
    Date:   Wed Jul 6 23:54:49 2022 +0200

        avformat/nutdec: Check get_packetheader() in mainheader

        Fixes; Timeout
        Fixes: 48794/clusterfuzz-testcase-minimized-ffmpeg_dem_NUT_fuzzer-6524604713140224

        Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
        Signed-off-by: Michael Niedermayer
        (cherry picked from commit b5de084aa63b79586bc445e6a7fea837688b3941)
        Signed-off-by: Michael Niedermayer

    commit e8a51675ea8abf67fd5768dcfa17869e130cb8a5
    Author: Michael Niedermayer
    Date:   Wed Jul 20 01:05:20 2022 +0200

        avformat/mov: Check for EOF in mov_read_iloc()

        Fixes: Timeout
        Fixes: 49216/clusterfuzz-testcase-minimized-ffmpeg_IO_DEMUXER_fuzzer-6563000529584128

        Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
        Signed-off-by: Michael Niedermayer
        (cherry picked from commit 744ad45c44e69e354e924902c4daf0044dcd9955)
        Signed-off-by: Michael Niedermayer

    commit 1c06f776e6ecfc3f17bdd1e29c6add72548c9576
    Author: Michael Niedermayer
    Date:   Tue Jul 19 00:32:18 2022 +0200

        avformat/asfdec_f: Use 64bit for packet start time

        Fixes: signed integer overflow: 2147483647 + 32 cannot be represented in type 'int'
        Fixes: 49014/clusterfuzz-testcase-minimized-ffmpeg_dem_ASF_fuzzer-6314973315334144

        Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
        Signed-off-by: Michael Niedermayer
        (cherry picked from commit 8ed78486fcb065b5b459f14d4b1c3242f6d21ec7)
        Signed-off-by: Michael Niedermayer

    commit e95f80c8df9dc39592c12940983db794ab315a99
    Author: Michael Niedermayer
    Date:   Mon Jul 18 22:46:45 2022 +0200

        avcodec/exr: Check x/ysize

        Fixes: OOM
        Fixes: 48911/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_EXR_fuzzer-6352002510094336

        Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
        Signed-off-by: Michael Niedermayer
        (cherry picked from commit 614a4d1476c6e3561ebab3977cb43b2b4b6406fd)
        Signed-off-by: Michael Niedermayer

    commit 6a7842560450da25fb4184ff11dbb8b8791e8703
    Author: Michael Niedermayer
    Date:   Thu Jul 21 00:20:41 2022 +0200

        avcodec/ffv1dec: Fix AC_GOLOMB_RICE min size check

        Found-by: mkver

        Signed-off-by: Michael Niedermayer
        (cherry picked from commit f7d510b33ff33d2f5cb096017ee1c00f624cc138)
        Signed-off-by: Michael Niedermayer

    commit 288ef1939f633da9cebca791215a2a2130ef6f3c
    Author: Michael Niedermayer
    Date:   Tue Jul 19 01:25:01 2022 +0200

        avcodec/ffv1dec: consider run increase in minimal golomb frame size

        Fixes: Timeout
        Fixes: 49160/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_FFV1_fuzzer-5672826144686080

        Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
        Reviewed-by: James Almer
        Signed-off-by: Michael Niedermayer
        (cherry picked from commit 15785e044ee1265464bb4f3ed727e2a8074f97b4)
        Signed-off-by: Michael Niedermayer

    commit cd894807feda1cf23d21b2330989c4d239ecf22b
    Author: Michael Niedermayer
    Date:   Tue Jul 19 00:25:45 2022 +0200

        tools/target_dec_fuzzer: Adjust threshold for MMVIDEO

        Fixes: Timeout
        Fixes: 49003/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_MMVIDEO_fuzzer-5550368423018496

        Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
        Reviewed-by: Peter Ross
        Signed-off-by: Michael Niedermayer
        (cherry picked from commit 3592b05c84958e2723cc026e7649df508de1a9c4)
        Signed-off-by: Michael Niedermayer

    commit 22878e817700d2b94f5102131d8a256afec9cfb8
    Author: Michael Niedermayer
    Date:   Fri Nov 2 01:36:21 2018 +0100

        RELEASE_NOTES: Based on the version from 5.0

        Name suggested by Leo Izen and Andreas Rheinhardt

        LTS text suggested by Martijn van Beurden

        Signed-off-by: Michael Niedermayer

    commit d6a1e5980bbf5993882453e0d833d0afbeeeac4a
    Author: Timo Rothenpieler
    Date:   Wed Jul 6 01:32:27 2022 +0200

        avutil/hwcontext_d3d11va: fix texture_infos writes on non-fixed-size pools

    commit 83feded4926272904e4abcecaa573e61d457a0db
    Author: Marton Balint
    Date:   Sun Jul 10 20:32:55 2022 +0200

        avdevice/avdevice: fix return value of avdevice_list_devices()

        According to API docs avdevice_list_devices(), avdevice_list_input_sources()
        and avdevice_list_input_sinks() should return the number of autodetected
        devices on success. This is redundant with AVDeviceInfoList->nb_devices so it
        was not noticed earlier that none of the underlying device list functions work
        like that.

        Let's fix it in generic code to make it in line with the API docs.

        Fixes ticket #9820.

        Signed-off-by: Marton Balint
        (cherry picked from commit 64f04df37942c1b1fc11df0f99ffba7834c33f34)

    commit 2720715dab70f40025a1d209e746b6c0f188a9d4
    Author: Michael Niedermayer
    Date:   Tue Jul 12 20:43:20 2022 +0200

        avcodec/lagarith: Check dst/src in zero run code

        Fixes: out of array access
        Fixes: 48799/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_LAGARITH_fuzzer-4764457825337344

        Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
        Reviewed-by: Paul B Mahol
        Signed-off-by: Michael Niedermayer
        (cherry picked from commit 9450f759748d02d1d284d2e4afd741cb0fe0c04a)
        Signed-off-by: Michael Niedermayer