mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 11:41:09 +00:00
qtdemux: Fix reverse playback for pcm audio stream
Some raw lpcm or adpcm may have larger sample sizes than the max buffer size value set. Trimming the buffer causes bogus size error on reverse playback. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5742>
This commit is contained in:
parent
adfa4d459e
commit
041e0c6cab
1 changed files with 1 additions and 1 deletions
|
@ -16185,7 +16185,7 @@ qtdemux_audio_caps (GstQTDemux * qtdemux, QtDemuxStream * stream,
|
||||||
if (g_str_has_prefix (name, "audio/x-raw")) {
|
if (g_str_has_prefix (name, "audio/x-raw")) {
|
||||||
stream->need_clip = TRUE;
|
stream->need_clip = TRUE;
|
||||||
stream->min_buffer_size = 1024 * entry->bytes_per_frame;
|
stream->min_buffer_size = 1024 * entry->bytes_per_frame;
|
||||||
stream->max_buffer_size = 4096 * entry->bytes_per_frame;
|
stream->max_buffer_size = entry->rate * entry->bytes_per_frame;
|
||||||
GST_DEBUG ("setting min/max buffer sizes to %d/%d", stream->min_buffer_size,
|
GST_DEBUG ("setting min/max buffer sizes to %d/%d", stream->min_buffer_size,
|
||||||
stream->max_buffer_size);
|
stream->max_buffer_size);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue