Romain Vimont a9c8fa305d Fix segfault on recording with old FFmpeg
The AVPacket fields side_data and side_data_elems were not initialized
by av_packet_ref() in old FFmpeg versions (prior to [1]).

As a consequence, on av_packet_unref(), side_data was freed, causing a
segfault.

Fixes <https://github.com/Genymobile/scrcpy/issues/707>

[1]: <http://git.videolan.org/gitweb.cgi/ffmpeg.git/?p=ffmpeg.git;a=commitdiff;h=3b4026e15110547892d5d770b6b43c9e34df458f>
2019-08-13 18:58:36 +02:00
..
2018-08-12 15:35:29 +02:00
2019-06-23 20:52:03 +02:00
2019-05-30 22:30:18 +02:00
2019-08-01 22:50:03 +02:00
2019-05-31 22:57:12 +02:00
2019-06-11 17:44:07 +02:00
2019-05-05 17:35:00 +02:00
2019-06-23 20:52:03 +02:00
2019-05-31 16:18:00 +02:00
2019-05-31 16:18:00 +02:00
2019-05-31 16:18:00 +02:00
2019-03-03 12:02:41 +01:00
2019-03-03 12:02:41 +01:00
2019-05-31 16:18:00 +02:00
2019-05-31 16:18:00 +02:00
2019-07-31 01:53:16 +02:00
2019-03-02 18:45:45 +01:00
2019-06-07 17:16:26 +02:00
2019-06-07 17:16:26 +02:00
2018-02-05 14:46:00 +01:00
2019-06-07 17:19:00 +02:00
2019-02-09 12:27:13 +01:00
2019-05-31 23:33:44 +02:00
2019-03-02 23:55:23 +01:00
2019-05-31 16:18:00 +02:00
2019-05-30 22:46:52 +02:00
2019-08-08 18:57:52 +02:00
2019-07-31 01:55:32 +02:00
2019-07-31 01:53:16 +02:00
2019-06-24 19:58:00 +02:00
2019-06-24 19:58:00 +02:00
2019-07-31 01:55:32 +02:00
2019-07-31 01:55:32 +02:00
2019-07-31 01:55:40 +02:00
2019-07-31 01:55:32 +02:00
2019-05-20 09:44:45 +02:00
2019-03-02 20:28:46 +01:00
2019-06-07 17:16:26 +02:00
2019-06-07 17:16:26 +02:00