Allocate AVPacket for v4l2_sink

From FFmpeg/doc/APIchanges:

    2021-03-17 - f7db77bd87 - lavc 58.133.100 - codec.h
      Deprecated av_init_packet(). Once removed, sizeof(AVPacket) will
      no longer be a part of the public ABI.

Refs #2302 <https://github.com/Genymobile/scrcpy/issues/2302>
This commit is contained in:
Romain Vimont
2021-06-14 09:07:49 +02:00
parent 4af317d40d
commit cd2894570d
2 changed files with 12 additions and 3 deletions

View File

@@ -26,7 +26,7 @@ struct sc_v4l2_sink {
bool header_written;
AVFrame *frame;
AVPacket packet;
AVPacket *packet;
};
bool