JeffyCN / FFmpeg

FFmpeg with rkmpp hwdec - (deprecated due to license issue, check gstreamer instead or https://github.com/nyanmisaka/ffmpeg-rockchip)
https://ffmpeg.org
Other
63 stars 19 forks source link

libavcodec/get_buffer.c中的286行,未找到定义 #13

Closed jiale-gdyd closed 1 year ago

jiale-gdyd commented 1 year ago

if (s->codec->caps_internal & FF_CODEC_CAP_CONTIGUOUS_BUFFERS) { 上面这一句应该改为 if (ffcodec(s->codec)->caps_internal & FF_CODEC_CAP_CONTIGUOUS_BUFFERS) {

jiale-gdyd commented 1 year ago

还有就是libavcodec/rkmppdec.c的792行的: .p.caps_internal = FF_CODEC_CAP_CONTIGUOUS_BUFFERS, \ 应该修改为: .caps_internal = FF_CODEC_CAP_CONTIGUOUS_BUFFERS, \

jiale-gdyd commented 1 year ago

libavcodec/codec_internal.h:79:45: warning: unsigned conversion from ‘int’ to ‘unsigned int:29’ changes value from ‘-2147483648’ to ‘0’ [-Woverflow]

define FF_CODEC_CAP_CONTIGUOUS_BUFFERS (1 << 31)

                                         ^

libavcodec/rkmppdec.c:793:27: note: in expansion of macro ‘FF_CODEC_CAP_CONTIGUOUS_BUFFERS’ .caps_internal = FF_CODEC_CAP_CONTIGUOUS_BUFFERS, \ ^~~~~~~

JeffyCN commented 1 year ago

could not reproduce this issue.

JeffyCN commented 1 year ago

wait, which branch were you using? i was testing 4.4

JeffyCN commented 1 year ago

hmmm, there're something wrong in the 5.1 and master branches, fix it right now!

jiale-gdyd commented 1 year ago

还是5.1的分支: image 需要在rkmppdec.c中天界缺失的头文件: image

JeffyCN commented 1 year ago

right, done