You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/home/hubutui/Projects/archlinuxcn-repo/archlinuxcn/python-decord/src/decord-0.6.0/src/video/video_reader.cc: In member function ‘virtual void decord::VideoReader::SetVideoStream(int)’:
/home/hubutui/Projects/archlinuxcn-repo/archlinuxcn/python-decord/src/decord-0.6.0/src/video/video_reader.cc:149:88: error: invalid conversion from ‘AVCodec**’ to ‘const AVCodec**’ [-fpermissive]
149 | int st_nb = av_find_best_stream(fmt_ctx_.get(), AVMEDIA_TYPE_VIDEO, stream_nb, -1, &dec, 0);
| ^~~~
| |
| AVCodec**
In file included from /home/hubutui/Projects/archlinuxcn-repo/archlinuxcn/python-decord/src/decord-0.6.0/src/video/ffmpeg/ffmpeg_common.h:25,
from /home/hubutui/Projects/archlinuxcn-repo/archlinuxcn/python-decord/src/decord-0.6.0/src/video/threaded_decoder_interface.h:10,
quick fix, we could change AVCodec *dec; to const AVCodec *dec; in
quick fix, we could change
AVCodec *dec;
toconst AVCodec *dec;
indecord/src/video/video_reader.cc
Line 148 in d2e5619
and if
USE_CUDA=ON
, then you also need to cast this pointer indecord/src/video/video_reader.cc
Line 165 in d2e5619
change
fmt_ctx_->iformat
to(AVInputFormat*)fmt_ctx_->iformat
.The text was updated successfully, but these errors were encountered: