|
40 | 40 | #ifndef IS_FFMPEG_3_2 |
41 | 41 | #define IS_FFMPEG_3_2 (LIBAVCODEC_VERSION_INT >= AV_VERSION_INT(57, 64, 101)) |
42 | 42 | #endif |
43 | | - |
| 43 | + |
44 | 44 | #ifndef HAVE_HW_ACCEL |
45 | 45 | #define HAVE_HW_ACCEL (LIBAVCODEC_VERSION_INT >= AV_VERSION_INT(57, 107, 100)) |
46 | 46 | #endif |
|
177 | 177 | #define AV_OUTPUT_CONTEXT(output_context, path) avformat_alloc_output_context2( output_context, NULL, NULL, path) |
178 | 178 | #define AV_OPTION_FIND(priv_data, name) av_opt_find(priv_data, name, NULL, 0, 0) |
179 | 179 | #define AV_OPTION_SET( av_stream, priv_data, name, value, avcodec) av_opt_set(priv_data, name, value, 0); avcodec_parameters_from_context(av_stream->codecpar, avcodec); |
180 | | - #define AV_FORMAT_NEW_STREAM(oc, st_codec, av_codec, av_st) av_st = avformat_new_stream(oc, NULL);\ |
| 180 | + #define AV_FORMAT_NEW_STREAM(oc, st_codec_ctx, av_codec, av_st) av_st = avformat_new_stream(oc, NULL);\ |
181 | 181 | if (!av_st) \ |
182 | 182 | throw OutOfMemory("Could not allocate memory for the video stream.", path); \ |
183 | 183 | c = avcodec_alloc_context3(av_codec); \ |
184 | | - st_codec = c; \ |
| 184 | + st_codec_ctx = c; \ |
185 | 185 | av_st->codecpar->codec_id = av_codec->id; |
186 | | - #define AV_COPY_PARAMS_FROM_CONTEXT(av_stream, av_codec) avcodec_parameters_from_context(av_stream->codecpar, av_codec); |
| 186 | + #define AV_COPY_PARAMS_FROM_CONTEXT(av_stream, av_codec_ctx) avcodec_parameters_from_context(av_stream->codecpar, av_codec_ctx); |
187 | 187 | #elif IS_FFMPEG_3_2 |
188 | 188 | #define AV_REGISTER_ALL av_register_all(); |
189 | 189 | #define AVCODEC_REGISTER_ALL avcodec_register_all(); |
|
0 commit comments