History

vorbisenc: set AVCodecContext.bit_rate to 0

The Vorbis encoder is always VBR.

Justin Ruggles committed 14 years ago

Commit a0a5fed1 parent 890fddd1 file · +1 −0Browse files

Unified · Split

libavcodec/vorbisenc.c+1−0
@@ -1180,6 +1180,7 @@ static av_cold int vorbis_encode_init(AVCodecContext *avccontext) · 1179 unmodified lines
11801180 if ((ret = create_vorbis_context(venc, avccontext)) < 0)
11811181 goto error;
11821182
1183+ avccontext->bit_rate = 0;
11831184 if (avccontext->flags & CODEC_FLAG_QSCALE)
11841185 venc->quality = avccontext->global_quality / (float)FF_QP2LAMBDA;
11851186 else

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