Commit 98b8aee7 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

So-called "RTSP" VOD: advertise the actual audio frequency

This closes #1657. We have to use the same frequency as the RTP stream
output, otherwise, it's not going to work...
parent 7a5e0b24
...@@ -523,7 +523,7 @@ static int MediaAddES( vod_t *p_vod, vod_media_t *p_media, es_format_t *p_fmt ) ...@@ -523,7 +523,7 @@ static int MediaAddES( vod_t *p_vod, vod_media_t *p_media, es_format_t *p_fmt )
break; break;
case VLC_FOURCC( 'm', 'p', 'g', 'a' ): case VLC_FOURCC( 'm', 'p', 'g', 'a' ):
p_es->i_payload_type = 14; p_es->i_payload_type = 14;
p_es->psz_rtpmap = strdup( "MPA/90000" ); asprintf( &p_es->psz_rtpmap, "MPA/%d", p_fmt->audio.i_rate );
break; break;
case VLC_FOURCC( 'm', 'p', 'g', 'v' ): case VLC_FOURCC( 'm', 'p', 'g', 'v' ):
p_es->i_payload_type = 32; p_es->i_payload_type = 32;
...@@ -531,7 +531,7 @@ static int MediaAddES( vod_t *p_vod, vod_media_t *p_media, es_format_t *p_fmt ) ...@@ -531,7 +531,7 @@ static int MediaAddES( vod_t *p_vod, vod_media_t *p_media, es_format_t *p_fmt )
break; break;
case VLC_FOURCC( 'a', '5', '2', ' ' ): case VLC_FOURCC( 'a', '5', '2', ' ' ):
p_es->i_payload_type = p_media->i_payload_type++; p_es->i_payload_type = p_media->i_payload_type++;
p_es->psz_rtpmap = strdup( "ac3/90000" ); asprintf( &p_es->psz_rtpmap, "ac3/%d", p_fmt->audio.i_rate );
break; break;
case VLC_FOURCC( 'H', '2', '6', '3' ): case VLC_FOURCC( 'H', '2', '6', '3' ):
p_es->i_payload_type = p_media->i_payload_type++; p_es->i_payload_type = p_media->i_payload_type++;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment