History

avcodec/ffv1enc: 2Pass mode is not possible with golomb coding

"Fixes" Ticket7063

Michael Niedermayer committed 2 years ago

Commit 417b1631 parent 25d605d1 file · +5 −0Browse files

Showing the changes to libavcodec (1 of 1 file). Show all

Unified · Split

libavcodec/ffv1enc.c+5−0
@@ -528,6 +528,11 @@ static av_cold int encode_init(AVCodecContext *avctx) · 527 unmodified lines
528 avctx->slices > 1)528 avctx->slices > 1)
529 s->version = FFMAX(s->version, 2);529 s->version = FFMAX(s->version, 2);
530 530
531 if ((avctx->flags & (AV_CODEC_FLAG_PASS1 | AV_CODEC_FLAG_PASS2)) && s->ac == AC_GOLOMB_RICE) {
532 av_log(avctx, AV_LOG_ERROR, "2 Pass mode is not possible with golomb coding\n");
533 return AVERROR(EINVAL);
534 }
535
531 // Unspecified level & slices, we choose version 1.2+ to ensure multithreaded decodability536 // Unspecified level & slices, we choose version 1.2+ to ensure multithreaded decodability
532 if (avctx->slices == 0 && avctx->level < 0 && avctx->width * avctx->height > 720*576)537 if (avctx->slices == 0 && avctx->level < 0 && avctx->width * avctx->height > 720*576)
533 s->version = FFMAX(s->version, 2);538 s->version = FFMAX(s->version, 2);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t