[vlc-commits] pulse: set i_bytes_per_frame for S/PDIF
Thomas Guillem
git at videolan.org
Fri Oct 7 12:10:17 CEST 2016
vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Thu Oct 6 16:40:45 2016 +0200| [870521a4391f1f052509ba5b2ad517e37ec5e418] | committer: Thomas Guillem
pulse: set i_bytes_per_frame for S/PDIF
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=870521a4391f1f052509ba5b2ad517e37ec5e418
---
modules/audio_output/pulse.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/modules/audio_output/pulse.c b/modules/audio_output/pulse.c
index 4a11ec6..0d5b0a1 100644
--- a/modules/audio_output/pulse.c
+++ b/modules/audio_output/pulse.c
@@ -719,11 +719,15 @@ static int Start(audio_output_t *aout, audio_sample_format_t *restrict fmt)
break;
case VLC_CODEC_A52:
fmt->i_format = VLC_CODEC_SPDIFL;
+ fmt->i_bytes_per_frame = 4;
+ fmt->i_frame_length = 1;
encoding = PA_ENCODING_AC3_IEC61937;
ss.format = HAVE_FPU ? PA_SAMPLE_FLOAT32NE : PA_SAMPLE_S16NE;
break;
case VLC_CODEC_EAC3:
fmt->i_format = VLC_CODEC_SPDIFL;
+ fmt->i_bytes_per_frame = 4;
+ fmt->i_frame_length = 1;
encoding = PA_ENCODING_EAC3_IEC61937;
ss.format = HAVE_FPU ? PA_SAMPLE_FLOAT32NE : PA_SAMPLE_S16NE;
break;
@@ -734,8 +738,11 @@ static int Start(audio_output_t *aout, audio_sample_format_t *restrict fmt)
break;*/
case VLC_CODEC_DTS:
fmt->i_format = VLC_CODEC_SPDIFL;
+ fmt->i_bytes_per_frame = 4;
+ fmt->i_frame_length = 1;
encoding = PA_ENCODING_DTS_IEC61937;
ss.format = HAVE_FPU ? PA_SAMPLE_FLOAT32NE : PA_SAMPLE_S16NE;
+
break;
default:
if (HAVE_FPU)
More information about the vlc-commits
mailing list