equal
deleted
inserted
replaced
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 |
64 #endif |
65 |
65 |
66 #if LIBAVCODEC_VERSION_MAJOR < 56 |
66 #if LIBAVCODEC_VERSION_MAJOR < 56 |
|
67 #if LIBAVCODEC_VERSION_MAJOR < 55 |
|
68 #define av_frame_free avfreep |
|
69 #else |
|
70 #define av_frame_free avcodec_free_frame |
|
71 #endif |
|
72 |
67 #define av_frame_alloc avcodec_alloc_frame |
73 #define av_frame_alloc avcodec_alloc_frame |
68 #define av_frame_free avcodec_free_frame |
|
69 #define av_packet_rescale_ts rescale_ts |
74 #define av_packet_rescale_ts rescale_ts |
70 |
75 |
71 static void rescale_ts(AVPacket *pkt, AVRational ctb, AVRational stb) |
76 static void rescale_ts(AVPacket *pkt, AVRational ctb, AVRational stb) |
72 { |
77 { |
73 if (pkt->pts != AV_NOPTS_VALUE) |
78 if (pkt->pts != AV_NOPTS_VALUE) |