equal
deleted
inserted
replaced
59 // compatibility section |
59 // compatibility section |
60 #if LIBAVCODEC_VERSION_MAJOR < 54 |
60 #if LIBAVCODEC_VERSION_MAJOR < 54 |
61 #define OUTBUFFER_SIZE 200000 |
61 #define OUTBUFFER_SIZE 200000 |
62 static uint8_t g_OutBuffer[OUTBUFFER_SIZE]; |
62 static uint8_t g_OutBuffer[OUTBUFFER_SIZE]; |
63 #define avcodec_open2(x, y, z) avcodec_open(x, y) |
63 #define avcodec_open2(x, y, z) avcodec_open(x, y) |
|
64 #endif |
|
65 |
|
66 #if LIBAVCODEC_VERSION_MAJOR < 55 |
|
67 #define avcodec_default_get_buffer2(x, y ,z) avcodec_default_get_buffer(x, y) |
64 #endif |
68 #endif |
65 |
69 |
66 #if LIBAVCODEC_VERSION_MAJOR < 56 |
70 #if LIBAVCODEC_VERSION_MAJOR < 56 |
67 #define av_frame_alloc avcodec_alloc_frame |
71 #define av_frame_alloc avcodec_alloc_frame |
68 #define av_frame_free av_freep |
72 #define av_frame_free av_freep |