mirror of https://github.com/Genymobile/scrcpy
Process the last video frame
On H.264 stream EOF, the eof_reached flag is set, but av_read_frame() still provides a frame, so check the flag only afterwards. As a side-effect, it also fixes a memory leak (the very last packet was not unref).pull/93/head
parent
73c332e3e4
commit
35298bb0c6
Loading…
Reference in New Issue