Skip to content

Conversation

@swiftgeek
Copy link

@swiftgeek swiftgeek commented May 14, 2022

Fixes building with newer ffmpeg.

/tmp/DivvyDroid/src/device/videothread.cpp: In member function ‘int VideoThread::h264VideoStreamIndex()’:
/tmp/DivvyDroid/src/device/videothread.cpp:170:52: error: invalid conversion from ‘const AVCodec*’ to ‘AVCodec*’ [-fpermissive]
  170 |                 AVCodec *dec = avcodec_find_decoder(m_avStream->codecpar->codec_id);
      |                                ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                    |
      |                                                    const AVCodec*

Similar issue resolved in some other project:


Change tested with recent archlinux, ffmpeg 5.0 and android 10/11


Thx for this project, seems to be more reliable than scrcpy thanks to many fallbacks

@maxrd2
Copy link
Owner

maxrd2 commented May 15, 2022

thank you... could you please use const AVCodec * instead of auto

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.

2 participants