mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-26 10:10:32 +00:00
opusenc: use the same frame size setup as the opus test code
https://bugzilla.gnome.org/show_bug.cgi?id=660364
This commit is contained in:
parent
24577fcf6d
commit
495de129ff
1 changed files with 2 additions and 1 deletions
|
@ -286,12 +286,13 @@ gst_opus_enc_sink_setcaps (GstPad * pad, GstCaps * caps)
|
||||||
enc->frame_samples = enc->sample_rate / 50;
|
enc->frame_samples = enc->sample_rate / 50;
|
||||||
break;
|
break;
|
||||||
case 40:
|
case 40:
|
||||||
enc->frame_samples = enc->sample_rate / 20;
|
enc->frame_samples = enc->sample_rate / 25;
|
||||||
break;
|
break;
|
||||||
case 60:
|
case 60:
|
||||||
enc->frame_samples = 3 * enc->sample_rate / 50;
|
enc->frame_samples = 3 * enc->sample_rate / 50;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
GST_WARNING_OBJECT (enc, "Unsupported frame size: %d", enc->frame_size);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue