Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug fix for invalid conversion from AVCodec** to const AVCodec** #278

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

SamMaoYS
Copy link

Environment

Ubuntu 23.04 lunar
gcc version 12.3.0
ffmpeg version n4.3.1

Issue

During compiling:

decord/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**

Fix

Convert AVCodec* to const AVCodec* for the dec

@GadiZimerman
Copy link

@CodiumAI-Agent /review

@JamesMcCullochDickens
Copy link

How did you fix this in the video_reader.cc file?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants