equal
deleted
inserted
replaced
77 if (pkt->duration > 0) |
77 if (pkt->duration > 0) |
78 pkt->duration = av_rescale_q(pkt->duration, ctb, stb); |
78 pkt->duration = av_rescale_q(pkt->duration, ctb, stb); |
79 } |
79 } |
80 #endif |
80 #endif |
81 |
81 |
82 #if LIBAVCODEC_VERSION_MAJOR < 56 |
82 #ifndef AV_CODEC_CAP_DELAY |
83 #define AV_CODEC_CAP_DELAY CODEC_CAP_DELAY |
83 #define AV_CODEC_CAP_DELAY CODEC_CAP_DELAY |
|
84 #endif |
|
85 #ifndef AV_CODEC_CAP_VARIABLE_FRAME_SIZE |
84 #define AV_CODEC_CAP_VARIABLE_FRAME_SIZE CODEC_CAP_VARIABLE_FRAME_SIZE |
86 #define AV_CODEC_CAP_VARIABLE_FRAME_SIZE CODEC_CAP_VARIABLE_FRAME_SIZE |
|
87 #endif |
|
88 #ifndef AV_CODEC_FLAG_GLOBAL_HEADER |
85 #define AV_CODEC_FLAG_GLOBAL_HEADER CODEC_FLAG_GLOBAL_HEADER |
89 #define AV_CODEC_FLAG_GLOBAL_HEADER CODEC_FLAG_GLOBAL_HEADER |
|
90 #endif |
|
91 #ifndef AV_CODEC_FLAG_QSCALE |
86 #define AV_CODEC_FLAG_QSCALE CODEC_FLAG_QSCALE |
92 #define AV_CODEC_FLAG_QSCALE CODEC_FLAG_QSCALE |
87 #endif |
93 #endif |
88 |
94 |
89 #if LIBAVFORMAT_VERSION_MAJOR < 53 |
95 #if LIBAVFORMAT_VERSION_MAJOR < 53 |
90 #define AVIO_FLAG_WRITE AVIO_WRONLY |
96 #define AVIO_FLAG_WRITE AVIO_WRONLY |