equal
deleted
inserted
replaced
66 #if LIBAVCODEC_VERSION_MAJOR < 55 |
66 #if LIBAVCODEC_VERSION_MAJOR < 55 |
67 #define avcodec_default_get_buffer2(x, y ,z) avcodec_default_get_buffer(x, y) |
67 #define avcodec_default_get_buffer2(x, y ,z) avcodec_default_get_buffer(x, y) |
68 #endif |
68 #endif |
69 |
69 |
70 #if LIBAVCODEC_VERSION_MAJOR < 56 |
70 #if LIBAVCODEC_VERSION_MAJOR < 56 |
|
71 #if LIBAVCODEC_VERSION_MAJOR < 55 |
|
72 #define av_frame_free avfreep |
|
73 #else |
|
74 #define av_frame_free avcodec_free_frame |
|
75 #endif |
|
76 |
71 #define av_frame_alloc avcodec_alloc_frame |
77 #define av_frame_alloc avcodec_alloc_frame |
72 #define av_frame_free avcodec_free_frame |
|
73 #define av_frame_unref avcodec_get_frame_defaults |
78 #define av_frame_unref avcodec_get_frame_defaults |
74 #define av_packet_rescale_ts rescale_ts |
79 #define av_packet_rescale_ts rescale_ts |
75 |
80 |
76 static void rescale_ts(AVPacket *pkt, AVRational ctb, AVRational stb) |
81 static void rescale_ts(AVPacket *pkt, AVRational ctb, AVRational stb) |
77 { |
82 { |