mirror of
https://github.com/Genymobile/scrcpy.git
synced 2026-02-02 20:44:27 +01:00
The deprecated avcodec_decode_video2() should always the whole packet, so there is no need to loop (cf doc/examples/demuxing_decoding.c in FFmpeg). This hack changed the packet size and data pointer. This broke recording which used the same packet.