Closed jiale-gdyd closed 1 year ago
还有就是libavcodec/rkmppdec.c的792行的: .p.caps_internal = FF_CODEC_CAP_CONTIGUOUS_BUFFERS, \ 应该修改为: .caps_internal = FF_CODEC_CAP_CONTIGUOUS_BUFFERS, \
libavcodec/codec_internal.h:79:45: warning: unsigned conversion from ‘int’ to ‘unsigned int:29’ changes value from ‘-2147483648’ to ‘0’ [-Woverflow]
^
libavcodec/rkmppdec.c:793:27: note: in expansion of macro ‘FF_CODEC_CAP_CONTIGUOUS_BUFFERS’
.caps_internal = FF_CODEC_CAP_CONTIGUOUS_BUFFERS, \
^~~~~~~
could not reproduce this issue.
wait, which branch were you using? i was testing 4.4
hmmm, there're something wrong in the 5.1 and master branches, fix it right now!
还是5.1的分支: 需要在rkmppdec.c中天界缺失的头文件:
right, done
if (s->codec->caps_internal & FF_CODEC_CAP_CONTIGUOUS_BUFFERS) { 上面这一句应该改为 if (ffcodec(s->codec)->caps_internal & FF_CODEC_CAP_CONTIGUOUS_BUFFERS) {