mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 09:55:36 +00:00
avaudenc: use sample rate as ticks per second fallback
The 25/1 value presumably came from the video encoder class.
This commit is contained in:
parent
819d4d2a04
commit
a3d930afbe
1 changed files with 1 additions and 1 deletions
|
@ -275,7 +275,7 @@ gst_ffmpegaudenc_set_format (GstAudioEncoder * encoder, GstAudioInfo * info)
|
|||
/* fetch pix_fmt and so on */
|
||||
gst_ffmpeg_audioinfo_to_context (info, ffmpegaudenc->context);
|
||||
if (!ffmpegaudenc->context->time_base.den) {
|
||||
ffmpegaudenc->context->time_base.den = 25;
|
||||
ffmpegaudenc->context->time_base.den = GST_AUDIO_INFO_RATE (info);
|
||||
ffmpegaudenc->context->time_base.num = 1;
|
||||
ffmpegaudenc->context->ticks_per_frame = 1;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue