Unified · Split
| @@ -343,7 +343,7 @@ int enc_open(void *opaque, const AVFrame *frame) · 342 unmodified lines | |||
| 343 | return ret; | 343 | return ret; |
| 344 | } | 344 | } |
| 345 | 345 | ||
| 346 | if ((ret = avcodec_open2(ost->enc_ctx, enc, NULL)) < 0) { | 346 | if ((ret = avcodec_open2(enc_ctx, enc, NULL)) < 0) { |
| 347 | if (ret != AVERROR_EXPERIMENTAL) | 347 | if (ret != AVERROR_EXPERIMENTAL) |
| 348 | av_log(e, AV_LOG_ERROR, "Error while opening encoder - maybe " | 348 | av_log(e, AV_LOG_ERROR, "Error while opening encoder - maybe " |
| 349 | "incorrect parameters such as bit_rate, rate, width or height.\n"); | 349 | "incorrect parameters such as bit_rate, rate, width or height.\n"); |
| @@ -352,11 +352,11 @@ int enc_open(void *opaque, const AVFrame *frame) · 2 unmodified lines | |||
| 352 | 352 | ||
| 353 | e->opened = 1; | 353 | e->opened = 1; |
| 354 | 354 | ||
| 355 | if (ost->enc_ctx->frame_size) | 355 | if (enc_ctx->frame_size) |
| 356 | frame_samples = ost->enc_ctx->frame_size; | 356 | frame_samples = enc_ctx->frame_size; |
| 357 | 357 | ||
| 358 | if (ost->enc_ctx->bit_rate && ost->enc_ctx->bit_rate < 1000 && | 358 | if (enc_ctx->bit_rate && enc_ctx->bit_rate < 1000 && |
| 359 | ost->enc_ctx->codec_id != AV_CODEC_ID_CODEC2 /* don't complain about 700 bit/s modes */) | 359 | enc_ctx->codec_id != AV_CODEC_ID_CODEC2 /* don't complain about 700 bit/s modes */) |
| 360 | av_log(e, AV_LOG_WARNING, "The bitrate parameter is set too low." | 360 | av_log(e, AV_LOG_WARNING, "The bitrate parameter is set too low." |
| 361 | " It takes bits/s as argument, not kbits/s\n"); | 361 | " It takes bits/s as argument, not kbits/s\n"); |
| 362 | 362 | ||