Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
transcoding: remove codecs with a variable frame size from the set of…
… valid encoders - the way we encode audio is incompatible with variable frame size encoders
  • Loading branch information
lekma authored and perexg committed Mar 28, 2016
1 parent ff43bbc commit 8e596d6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/plumbing/transcoding.c
Expand Up @@ -2110,8 +2110,10 @@ transcoder_get_capabilities(int experimental)
if (!WORKING_ENCODER(p->id))
continue;

if ((p->capabilities & CODEC_CAP_EXPERIMENTAL) && !experimental)
if (((p->capabilities & CODEC_CAP_EXPERIMENTAL) && !experimental) ||
(p->capabilities & AV_CODEC_CAP_VARIABLE_FRAME_SIZE)) {
continue;
}

sct = codec_id2streaming_component_type(p->id);
if (sct == SCT_NONE || sct == SCT_UNKNOWN)
Expand Down

0 comments on commit 8e596d6

Please sign in to comment.