Commit Graph

47106 Commits

Author SHA1 Message Date
Rémi Denis-Courmont 3780e851c1 avcodec/x86/mathops: clip constants used with shift instructions within inline assembly
Fixes assembling with binutil as >= 2.41

Signed-off-by: James Almer <jamrial@gmail.com>
2025-12-15 19:23:33 +08:00
yaojingwei 808de05ff0 Revert "aac: support aac raw data decoding."
This reverts commit 091c299a379a50d0564b3e22c76c86134e0fedcc.

Signed-off-by: yaojingwei <yaojingwei@xiaomi.com>
2025-12-15 19:23:29 +08:00
zengshuang 487ded7856 libavcodec/libfluoride-sbcdec.c:fix sbc compilation warning.
ffmpeg/libavcodec/libfluoride-sbcdec.c:35: warning: "SBC_WBS_SAMPLES_PER_FRAME" redefined
35 | #define SBC_WBS_SAMPLES_PER_FRAME (SBC_MAX_BANDS * SBC_MAX_BLOCKS)

In file included from ffmpeg/libavcodec/libfluoride-sbcdec.c:32:
/home/cuiziwei/ssd/trunk/apps/external/libfluoride-sbc/libfluoride-sbc/decoder/include/oi_codec_sbc.h:68: note: this is the location of the previous definition
68 | #define SBC_WBS_SAMPLES_PER_FRAME 128

Signed-off-by: zengshuang <zengshuang@xiaomi.com>
2025-12-15 19:23:28 +08:00
renjianguang 59780b5bf4 ffmpeg: Fix a2dp playback sbc failure
Signed-off-by: renjianguang <renjianguang@xiaomi.com>
2025-12-15 19:23:27 +08:00
renjianguang 9a27b88df4 FFmpeg: Fixed libhelix-aac codec crash during a2dp playback
Signed-off-by: renjianguang <renjianguang@xiaomi.com>
2025-12-15 19:23:27 +08:00
cenzhanquan1 1c00935574 ffmpeg: libfluoride-sbcenc support msbc
Signed-off-by: cenzhanquan1 <cenzhanquan1@xiaomi.com>
2025-12-15 19:23:27 +08:00
cenzhanquan1 0f7ab4120f ffmpeg: libfluoride-sbcdec support msbc
Signed-off-by: cenzhanquan1 <cenzhanquan1@xiaomi.com>
2025-12-15 19:23:27 +08:00
wangmingrong1 05d69f327f ffmpeg: ignore compile error, this is not an easy alarm to change.
ffmpeg/libavcodec/ac3dec.c: In function 'decode_audio_block':
ffmpeg/libavcodec/ac3dec.c:1205:34: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=]
 1205 |             bit_alloc_stages[ch] = 3;
      |             ~~~~~~~~~~~~~~~~~~~~~^~~
ffmpeg/libavcodec/ac3dec.c:1105:13: note: at offset 7 into destination object 'bit_alloc_stages' of size 7
 1105 |     uint8_t bit_alloc_stages[AC3_MAX_CHANNELS] = { 0 };
      |             ^~~~~~~~~~~~~~~~
At top level:

Signed-off-by: wangmingrong1 <wangmingrong1@xiaomi.com>
2025-12-15 19:23:26 +08:00
yangsen5 561c477401 ffmpeg: fix warning: define but not used
CC:  libuv/src/unix/sysinfo-memory.c ffmpeg/libavcodec/pcm.c:366:12: warning: 'pcm_decode_frame' defined but not used [-Wunused-function]
  366 | static int pcm_decode_frame(AVCodecContext *avctx, AVFrame *frame,
      |            ^~~~~~~~~~~~~~~~
ffmpeg/libavcodec/pcm.c:102:12: warning: 'pcm_encode_frame' defined but not used [-Wunused-function]
  102 | static int pcm_encode_frame(AVCodecContext *avctx, AVPacket *avpkt,
      |            ^~~~~~~~~~~~~~~~
cc1: note: unrecognized command-line option '-Wno-implicit-int-float-conversion' may have been intended to silence earlier diagnostics
cc1: note: unrecognized command-line option '-Wno-implicit-int-float-conversion' may have been intended to silence earlier diagnostics
CC:  ffmpeg/libavfilter/f_encoder.c ffmpeg/libavfilter/f_decoder.c:268:12: warning: 'decoder_process_command' defined but not used [-Wunused-function]
  268 | static int decoder_process_command(AVFilterContext *ctx,

Signed-off-by: yangsen5 <yangsen5@xiaomi.com>
2025-12-15 19:23:23 +08:00
yaojingwei 6d613ceb8d aac: support aac raw data decoding.
Signed-off-by: yaojingwei <yaojingwei@xiaomi.com>
2025-12-15 19:23:22 +08:00
ligd efc371aa08 fluoride_sbc: add muliti-packets support
Signed-off-by: ligd <liguiding1@xiaomi.com>
2025-12-15 19:23:22 +08:00
yaojingwei a738ebe5b0 sbc: remove sbc decode max frame limit.
When using Iphone to play music, the nframe exceeds the value of SBC_MAX_FRAME. The SBC_MAX_FRAME is useless,
because the nframe is limited by 0xf.

Signed-off-by: yaojingwei <yaojingwei@xiaomi.com>
2025-12-15 19:23:21 +08:00
yaojingwei 48762196e3 bluelet: a2dp sbc packed use common loas header.
Signed-off-by: yaojingwei <yaojingwei@xiaomi.com>
2025-12-15 19:23:21 +08:00
ligd 400109473b libhelix-aac: add latm support
Signed-off-by: ligd <liguiding1@xiaomi.com>
2025-12-15 19:23:21 +08:00
yaojingwei 4ac4d77b7a Revert "bluelet: a2dp sbc packed use common loas header"
This reverts commit 43d5650439de69f36cfa364da497a82aa461996e.

Signed-off-by: yaojingwei <yaojingwei@xiaomi.com>
2025-12-15 19:23:21 +08:00
fangzhenwei 32194e4079 bluelet: a2dp sbc packed use common loas header
Signed-off-by: yaojingwei <yaojingwei@xiaomi.com>
2025-12-15 19:23:21 +08:00
yaojingwei f0a9401963 Revert "ffmpeg: optimizing ffmpeg code size and memory."
This reverts commit e6def8088eceaf0aa822e6678f345a0b3ea57394.

Signed-off-by: yaojingwei <yaojingwei@xiaomi.com>
2025-12-15 19:23:20 +08:00
yangsen5 6586f115d5 ffmpeg: fix print warning of aac_rawtoadts bitstream filter
ffmpeg/libavfilter/src_movie_async.c:627:64: warning: format '%u' expects argument of type 'unsigned int', but argument 4 has type 'uint32_t' {aka 'long unsigned int'} [-Wformat=]
  627 |         av_log(par, AV_LOG_ERROR, "ADTS frame size too large: %u (max %d)\n",
      |                                                               ~^
      |                                                                |
      |                                                                unsigned int
      |                                                               %lu
  628 |                full_frame_size, AVMOVIE_ADTS_MAX_FRAME_BYTES);
      |                ~~~~~~~~~~~~~~~
      |                |
      |                uint32_t {aka long unsigned int}

Signed-off-by: yangsen5 <yangsen5@xiaomi.com>
2025-12-15 19:23:20 +08:00
renjianguang 9bbd4e24b5 FFMPEG: add offload_tlv bitstream filter
Signed-off-by: renjianguang <renjianguang@xiaomi.com>
2025-12-15 19:23:20 +08:00
yaojingwei 64cfb4a900 ffmpeg: optimizing code size by converting static array to dynamic malloc memory.
This patch can only reduce ffmpeg's code size by 160KB, but cannot reduce the runtime memory.

Signed-off-by: yaojingwei <yaojingwei@xiaomi.com>
2025-12-15 19:23:19 +08:00
yaojingwei 756041dff7 ffmpeg: optimizing ffmpeg code size and memory.
using malloc to replace supper big static arrays to reduce ffmpeg code size and memory.

Signed-off-by: yaojingwei <yaojingwei@xiaomi.com>
2025-12-15 19:23:19 +08:00
jinxiuxu b089d18feb FFMPEG: add aac_rawtoadts bitstream filter
add adts header to raw aac stream

Signed-off-by: jinxiuxu <jinxiuxu@xiaomi.com>
2025-12-15 19:23:17 +08:00
shizhenghui 4fbd1e97cc FFmpeg: add process_command support to avcodec
1. add process_command interface to avcodec
2. f_decoder forward command to avcodec_process_command
3. v4l2_m2m_dec support get_pollfd

Signed-off-by: shizhenghui <shizhenghui@xiaomi.com>
2025-12-15 19:23:12 +08:00
shizhenghui e45dbb88b3 FFmpeg: v4l2_m2m_enc support configure bframe
Signed-off-by: shizhenghui <shizhenghui@xiaomi.com>
2025-12-15 19:23:11 +08:00
wurui3 170fe20758 ffmpeg/libavcodec: fix amr-nb file encode samplerate to 8K.
Signed-off-by: wurui3 <wurui3@xiaomi.com>
2025-12-15 19:23:10 +08:00
yuexinyi f44834e60d ffmpeg: add code to sniff aac channel layout for libhelix aac decoder
Signed-off-by: yuexinyi <yuexinyi@xiaomi.com>
2025-12-15 19:23:08 +08:00
renjianguang 3604d7a9c0 FFmpeg: Fix compilation warning
ffmpeg/libavcodec/adpcmenc.c:603:20: warning: variable 'samples' set but not used [-Wunused-but-set-variable]
  603 |     const int16_t *samples;
      |                    ^~~~~~~
ffmpeg/libavcodec/adpcmenc.c:602:9: warning: variable 'st' set but not used [-Wunused-but-set-variable]
  602 |     int st, pkt_size, ret;

Signed-off-by: renjianguang <renjianguang@xiaomi.com>
2025-12-15 19:23:06 +08:00
shizhenghui c75fb97f75 FFmpeg: fix v4l2 single-planar issue
When converting V4L2Buffer to AVFrame, it is calculated based on the
format information of multi-planar, which can cause issues if the
decoder only supports single-planar.

Signed-off-by: shizhenghui <shizhenghui@xiaomi.com>
2025-12-15 19:23:04 +08:00
zhushiqshi 6dbf464034 FFMPEG: scorx mode is silent.
Signed-off-by: zhushiqshi <zhushiqshi@xiaomi.com>
2025-12-15 19:23:03 +08:00
zhushiqshi 2bea13e35c FFMPEG: optimzied pcm decoder for LE and BE.
Signed-off-by: zhushiqshi <zhushiqshi@xiaomi.com>
2025-12-15 19:23:03 +08:00
zhushiqshi 97a3f1356a FFMPEG: optimzied pcmdec to avoid memcpy.
Signed-off-by: zhushiqshi <zhushiqshi@xiaomi.com>
2025-12-15 19:23:03 +08:00
cuiziwei f13a41b7d5 sim/m64:fix build warning.
ffmpeg/libavcodec/cbrt_tablegen.h: In function ‘ff_cbrt_tableinit’:
ffmpeg/libavcodec/cbrt_tablegen.h:51:71: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘long unsigned int’ [-Wformat=]
   51 |             av_log(NULL, AV_LOG_FATAL, "cbrt_tableinit malloc failed %d\n",
      |                                                                      ~^
      |                                                                       |
      |                                                                       int
      |                                                                      %ld
   52 |                    (1 << 13) * sizeof(double));
      |                    ~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                    |
      |                    long unsigned int

Signed-off-by: cuiziwei <cuiziwei@xiaomi.com>
2025-12-15 19:22:57 +08:00
jinxiuxu eabc9a7946 FFMPEG: add rawaudio codec
add the rawaudio codec descriptor to support offload playback of PCM.

Signed-off-by: jinxiuxu <jinxiuxu@xiaomi.com>
2025-12-15 19:22:56 +08:00
shizhenghui bbe0cc71de FFmpeg: fix v4l2m2m encoder output status error
When the encoder output streamoff, the status of output->streamon will
be modified back to streamon again.

Signed-off-by: shizhenghui <shizhenghui@xiaomi.com>
2025-12-15 19:22:55 +08:00
cuiziwei 066b10c6c9 gnu++20:fix build warning.
make[1]: *** Waiting for unfinished jobs....
CC:  pthread/pthread_setcancelstate.c ffmpeg/libavcodec/x86/mpegaudiodsp.c:33:13: warning: ‘imdct36_blocks_sse2’ declared ‘static’ but never defined [-Wunused-function]
   33 | static void imdct36_blocks_ ## CPU(float *out, float *buf, float *in, int count, int switch_point, int block_type);\
      |             ^~~~~~~~~~~~~~~

Signed-off-by: cuiziwei <cuiziwei@xiaomi.com>
2025-12-15 19:22:54 +08:00
zhushiqshi e9ab5d9b47 FFMPEG: modified pkt.flags to indicate the end of the stream.
Signed-off-by: zhushiqshi <zhushiqshi@xiaomi.com>
2025-12-15 19:22:53 +08:00
cuiziwei 2f2241d674 gnu++20:fix build warning.
ffmpeg/libavcodec/h264_loopfilter.c: In function ‘ff_h264_filter_mb’:
ffmpeg/libavcodec/h264_loopfilter.c:805:21: warning: ‘filter_mb_mbaff_edgecv’ reading 14 bytes from a region of size 8 [-Wstringop-overread]
  805 |                     filter_mb_mbaff_edgecv(h, img_cb + 8*uvlinesize, uvlinesize, bS+4, 1, bqp[1], a, b, 1);
      |                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ffmpeg/libavcodec/h264_loopfilter.c:805:21: note: referencing argument 4 of type ‘const int16_t[7]’ {aka ‘const short int[7]’}
ffmpeg/libavcodec/h264_loopfilter.c:167:30: note: in a call to function ‘filter_mb_mbaff_edgecv’

Signed-off-by: cuiziwei <cuiziwei@xiaomi.com>
2025-12-15 19:22:52 +08:00
cuiziwei f84dd92688 fix build warning to [-Wstringop-overflow=].
ffmpeg/libavcodec/ac3dec.c:855:37: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=]
  855 |             s->channel_uses_spx[ch] = get_bits1(bc);
      |             ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
In file included from ffmpeg/libavcodec/ac3dec_float.c:34:
ffmpeg/libavcodec/ac3dec.h: In function 'decode_audio_block':
ffmpeg/libavcodec/ac3dec.h:144:13: note: at offset 7 into destination object 'channel_uses_spx' of size 7
  144 |     uint8_t channel_uses_spx[AC3_MAX_CHANNELS]; ///< channel uses spectral extension        (chinspx)
      |             ^~~~~~~~~~~~~~~~
At top level:
cc1: note: unrecognized command-line option '-Wno-implicit-int-float-conversion' may have been intended to silence earlier diagnostics
cc1: note: unrecognized command-line option '-Wno-implicit-int-float-conversion' may have been intended to silence earlier diagnostics
IN: libs/libc/libc.a -> staging/libc.a install -m 0644 libs/libc/libc.a staging/libc.a
CC:  ffmpeg/libavcodec/neon/mpegvideo.c ffmpeg/libavcodec/hevcdec.c: In function 'pred_weight_table':
ffmpeg/libavcodec/hevcdec.c:185:38: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=]
  185 |             chroma_weight_l0_flag[i] = get_bits1(gb);
      |             ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
ffmpeg/libavcodec/hevcdec.c:156:13: note: at offset 16 into destination object 'chroma_weight_l0_flag' of size 16
  156 |     uint8_t chroma_weight_l0_flag[16];
      |             ^~~~~~~~~~~~~~~~~~~~~
ffmpeg/libavcodec/hevcdec.c:229:42: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=]
  229 |                 chroma_weight_l1_flag[i] = get_bits1(gb);
      |                 ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
ffmpeg/libavcodec/hevcdec.c:158:13: note: at offset 16 into destination object 'chroma_weight_l1_flag' of size 16
  158 |     uint8_t chroma_weight_l1_flag[16];
      |             ^~~~~~~~~~~~~~~~~~~~~
At top level:
cc1: note: unrecognized command-line option '-Wno-implicit-int-float-conversion' may have been intended to silence earlier diagnostics
cc1: note: unrecognized command-line option '-Wno-implicit-int-float-conversion' may have been intended to silence earlier diagnostics
ffmpeg/libavformat/asfcrypt.c: In function 'multiswap_enc':
ffmpeg/libavformat/asfcrypt.c:119:11: warning: 'multiswap_step' reading 48 bytes from a region of size 24 [-Wstringop-overread]
  119 |     tmp = multiswap_step(keys + 6, b);
      |           ^~~~~~~~~~~~~~~~~~~~~~~~~~~
ffmpeg/libavformat/asfcrypt.c:119:11: note: referencing argument 1 of type 'const uint32_t[12]' {aka 'const long unsigned int[12]'}
ffmpeg/libavformat/asfcrypt.c:76:17: note: in a call to function 'multiswap_step'
   76 | static uint32_t multiswap_step(const uint32_t keys[12], uint32_t v)
      |                 ^~~~~~~~~~~~~~
ffmpeg/libavformat/asfcrypt.c: In function 'multiswap_dec':
ffmpeg/libavformat/asfcrypt.c:140:11: warning: 'multiswap_inv_step' reading 48 bytes from a region of size 24 [-Wstringop-overread]
  140 |     b   = multiswap_inv_step(keys + 6, tmp);
      |           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ffmpeg/libavformat/asfcrypt.c:140:11: note: referencing argument 1 of type 'const uint32_t[12]' {aka 'const long unsigned int[12]'}
ffmpeg/libavformat/asfcrypt.c:88:17: note: in a call to function 'multiswap_inv_step'
   88 | static uint32_t multiswap_inv_step(const uint32_t keys[12], uint32_t v)
      |                 ^~~~~~~~~~~~~~~~~~

Signed-off-by: cuiziwei <cuiziwei@xiaomi.com>
2025-12-15 19:22:52 +08:00
yangsen5 c53bd75dc2 ffmpeg: Fix warning when compiling goldfish 32-bit exif.c print format
CXX:  libopencore-amr/opencore/codecs_v2/audio/gsm_amr/amr_nb/common/src/overflow_tbl.cpp ffmpeg/libavcodec/exif.c: In function 'exif_decode_tag':
ffmpeg/libavcodec/exif.c:212:35: warning: passing argument 4 of 'ff_tread_tag' from incompatible pointer type [-Wincompatible-pointer-types]
  212 |     ff_tread_tag(gbytes, le, &id, &type, &count, &cur_pos);
      |                                   ^~~~~
      |                                   |
      |                                   enum TiffTypes *
In file included from ffmpeg/libavcodec/exif.c:29:
ffmpeg/libavcodec/tiff_common.h:128:71: note: expected 'unsigned int *' but argument is of type 'enum TiffTypes *'
  128 | int ff_tread_tag(GetByteContext *gb, int le, unsigned *tag, unsigned *type,
      |                                                             ~~~~~~~~~~^~~~
ffmpeg/libavcodec/exif.c:212:5: warning: converting a packed 'enum TiffTypes' pointer (alignment 1) to a 'unsigned int' pointer (alignment 4) may result in an unaligned pointer value [-Waddress-of-packed-member]
  212 |     ff_tread_tag(gbytes, le, &id, &type, &count, &cur_pos);
      |     ^~~~~~~~~~~~
In file included from ffmpeg/libavcodec/exif.c:29:
ffmpeg/libavcodec/tiff_common.h:36:6: note: defined here
   36 | enum TiffTypes {
      |      ^~~~~~~~~

Signed-off-by: yangsen5 <yangsen5@xiaomi.com>
2025-12-15 19:22:33 +08:00
yangsen5 6997ea57fe ffmpeg: Fix warning when compiling goldfish 32-bit mjpegdec.c print format
CXX:  src/framework/cdp/cdpNetwork.cpp ffmpeg/libavcodec/mjpegdec.c: In function 'mjpeg_decode_app':
ffmpeg/libavcodec/mjpegdec.c:1839:46: warning: format '%ld' expects argument of type 'long int', but argument 4 has type 'int' [-Wformat=]
 1839 |             av_log(s->avctx, AV_LOG_WARNING, "skipping APPx (len=%"PRId32") for bayer-encoded image\n", len);
      |                                              ^~~~~~~~~~~~~~~~~~~~~~                                     ~~~
      |                                                                                                         |
      |                                                                                                         int
In file included from /home/yangsen/work/openSource/vela-nuttx/qemu/1220/nuttx/include/stdint.h:35,

Signed-off-by: yangsen5 <yangsen5@xiaomi.com>
2025-12-15 19:22:33 +08:00
zhushiqshi 96011e39b7 FFMPEG: fixed runtime error requires 4 bytes alignment.
ffmpeg/libavcodec/startcode.c:47:17: runtime error: load of misaligned address 0xedd14105 for type 'const uint32_t', which requires 4 byte alignment
0xedd14105: note: pointer points here

Signed-off-by: zhushiqshi <zhushiqshi@xiaomi.com>
2025-12-15 19:22:27 +08:00
shipei f9ebd243d7 ffmpeg:modify fdkaac lib header file
modify fdkaac library header file

Signed-off-by: shipei <shipei@xiaomi.com>
2025-12-15 19:22:25 +08:00
qiaohaijiao1 a1d4487435 FFMPEG: correct audio_lossless to pcm_lossless
many lossless audio format like ALAC.. but not pcm.

Signed-off-by: qiaohaijiao1 <qiaohaijiao1@xiaomi.com>
2025-12-15 19:22:22 +08:00
yangsen5 1056d0a75f ffmpeg: Fix a warning about mismatched line parameter types in hevcdsp_init_neon.c when compiling goldfish 32-bit
CC:  string/lib_strncpy.c ffmpeg/libavcodec/arm/hevcdsp_init_neon.c: In function 'ff_hevc_dsp_init_neon':
ffmpeg/libavcodec/arm/hevcdsp_init_neon.c:216:40: warning: assignment to 'void (*)(uint8_t *, ptrdiff_t,  int,  int32_t *, uint8_t *, uint8_t *)' {aka 'void (*)(unsigned char *, int,  int,  long int *, unsigned char *, unsigned char *)'} from incompatible pointer type 'void (*)(uint8_t *, ptrdiff_t,  int,  int *, uint8_t *, uint8_t *)' {aka 'void (*)(unsigned char *, int,  int,  int *, unsigned char *, unsigned char *)'} [-Wincompatible-pointer-types]
  216 |         c->hevc_v_loop_filter_luma     = ff_hevc_v_loop_filter_luma_neon;
      |                                        ^
ffmpeg/libavcodec/arm/hevcdsp_init_neon.c:217:40: warning: assignment to 'void (*)(uint8_t *, ptrdiff_t,  int,  int32_t *, uint8_t *, uint8_t *)' {aka 'void (*)(unsigned char *, int,  int,  long int *, unsigned char *, unsigned char *)'} from incompatible pointer type 'void (*)(uint8_t *, ptrdiff_t,  int,  int *, uint8_t *, uint8_t *)' {aka 'void (*)(unsigned char *, int,  int,  int *, unsigned char *, unsigned char *)'} [-Wincompatible-pointer-types]
  217 |         c->hevc_h_loop_filter_luma     = ff_hevc_h_loop_filter_luma_neon;
      |                                        ^
ffmpeg/libavcodec/arm/hevcdsp_init_neon.c:218:40: warning: assignment to 'void (*)(uint8_t *, ptrdiff_t,  int32_t *, uint8_t *, uint8_t *)' {aka 'void (*)(unsigned char *, int,  long int *, unsigned char *, unsigned char *)'} from incompatible pointer type 'void (*)(uint8_t *, ptrdiff_t,  int *, uint8_t *, uint8_t *)' {aka 'void (*)(unsigned char *, int,  int *, unsigned char *, unsigned char *)'} [-Wincompatible-pointer-types]
  218 |         c->hevc_v_loop_filter_chroma   = ff_hevc_v_loop_filter_chroma_neon;
      |                                        ^
ffmpeg/libavcodec/arm/hevcdsp_init_neon.c:219:40: warning: assignment to 'void (*)(uint8_t *, ptrdiff_t,  int32_t *, uint8_t *, uint8_t *)' {aka 'void (*)(unsigned char *, int,  long int *, unsigned char *, unsigned char *)'} from incompatible pointer type 'void (*)(uint8_t *, ptrdiff_t,  int *, uint8_t *, uint8_t *)' {aka 'void (*)(unsigned char *, int,  int *, unsigned char *, unsigned char *)'} [-Wincompatible-pointer-types]
  219 |         c->hevc_h_loop_filter_chroma   = ff_hevc_h_loop_filter_chroma_neon;
      |                                        ^

Signed-off-by: yangsen5 <yangsen5@xiaomi.com>
2025-12-15 19:22:17 +08:00
yangsen5 58eb84dbb9 ffmpeg: Fixed a warning about mismatched line parameter types in hevcdsp_template.c when compiling goldfish 32-bit
ffmpeg/libavcodec/hevcdsp_template.c: In function 'hevc_h_loop_filter_chroma_8':
ffmpeg/libavcodec/hevcdsp_template.c:1650:63: warning: passing argument 4 of 'hevc_loop_filter_chroma_8' from incompatible pointer type [-Wincompatible-pointer-types]
 1650 |     FUNC(hevc_loop_filter_chroma)(pix, stride, sizeof(pixel), tc, no_p, no_q);
      |                                                               ^~
      |                                                               |
      |                                                               int32_t * {aka long int *}
ffmpeg/libavcodec/hevcdsp_template.c:1613:68: note: expected 'int *' but argument is of type 'int32_t *' {aka 'long int *'}
 1613 |                                           ptrdiff_t _ystride, int *_tc,
      |                                                               ~~~~~^~~

Signed-off-by: yangsen5 <yangsen5@xiaomi.com>
2025-12-15 19:22:17 +08:00
renjianguang 16c2c2c051 ffmpeg: add lhdc decoder and parser
Signed-off-by: renjianguang <renjianguang@xiaomi.com>
2025-12-15 19:22:05 +08:00
shizhenghui 79b17a0a00 FFmpeg: fix converity warning in libavcodec/lc3enc
Signed-off-by: shizhenghui <shizhenghui@xiaomi.com>
2025-12-15 19:22:01 +08:00
yanxiaowei 5f0bb42090 fix(avcodec): fix build warning
ffmpeg/libavcodec/v4l2_buffers.c:36: warning: "USEC_PER_SEC" redefined

Signed-off-by: yanxiaowei <yanxiaowei@xiaomi.com>
2025-12-15 19:22:00 +08:00
hanqiyuan 8fd8c6202e FFMPEG: silk decoder get format from AVCodecContext to fix silk play error -22
Signed-off-by: hanqiyuan <hanqiyuan@xiaomi.com>
2025-12-15 19:21:57 +08:00
hanqiyuan 02a0593eef FFMPEG: fix crash by add codec descriptors for silk & sbc_packed
Signed-off-by: hanqiyuan <hanqiyuan@xiaomi.com>
2025-12-15 19:21:57 +08:00