mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 06:46:38 +00:00
avaudenc: add a comment about using -1 in _finish_frame
See https://bugzilla.gnome.org/show_bug.cgi?id=729268
This commit is contained in:
parent
17e2e9acd9
commit
10e0606491
1 changed files with 3 additions and 0 deletions
|
@ -554,6 +554,9 @@ gst_ffmpegaudenc_encode_audio (GstFFMpegAudEnc * ffmpegaudenc,
|
|||
|
||||
codec = ffmpegaudenc->context->codec;
|
||||
if ((codec->capabilities & CODEC_CAP_VARIABLE_FRAME_SIZE) || !audio_in) {
|
||||
/* FIXME: Not really correct, as -1 means "all the samples we got
|
||||
given so far", which may not be true depending on the codec,
|
||||
but we have no way to know AFAICT */
|
||||
ret = gst_audio_encoder_finish_frame (enc, outbuf, -1);
|
||||
} else {
|
||||
ret = gst_audio_encoder_finish_frame (enc, outbuf, frame.nb_samples);
|
||||
|
|
Loading…
Reference in a new issue