equal
deleted
inserted
replaced
68 #endif |
68 #endif |
69 |
69 |
70 #if LIBAVCODEC_VERSION_MAJOR < 56 |
70 #if LIBAVCODEC_VERSION_MAJOR < 56 |
71 #define av_frame_alloc avcodec_alloc_frame |
71 #define av_frame_alloc avcodec_alloc_frame |
72 #define av_frame_free av_freep |
72 #define av_frame_free av_freep |
|
73 #define av_frame_unref avcodec_get_frame_defaults |
73 #define av_packet_rescale_ts rescale_ts |
74 #define av_packet_rescale_ts rescale_ts |
74 |
75 |
75 static void rescale_ts(AVPacket *pkt, AVRational ctb, AVRational stb) |
76 static void rescale_ts(AVPacket *pkt, AVRational ctb, AVRational stb) |
76 { |
77 { |
77 if (pkt->pts != AV_NOPTS_VALUE) |
78 if (pkt->pts != AV_NOPTS_VALUE) |