Since https://github.com/FFmpeg/FFmpeg/commit/7ecc2d403ce5c7b6ea3b1f368dccefd105209c7e
| 95 | #if (LIBAVUTIL_VERSION_MAJOR < 57) || ((LIBAVUTIL_VERSION_MAJOR == 57) && (LIBAVUTIL_VERSION_MINOR < 52)) |
| 96 | //Since https://github.com/FFmpeg/FFmpeg/commit/7ecc2d403ce5c7b6ea3b1f368dccefd105209c7e |
| 97 | static void get_frame_defaults(AVFrame *frame) |
| 98 | { |
| 99 | if (frame->extended_data != frame->data) { |
| 100 | av_freep(&frame->extended_data); |
| 101 | return; |
| 102 | } |
| 103 | |
| 104 | frame->extended_data = NULL; |
| 105 | get_frame_defaults(frame); |
| 106 | |
| 107 | return; |
| 108 | } |
| 109 | |
| 110 | AVFrame *av_frame_alloc(void) |
| 111 | { |