fixed representation id naming

This commit is contained in:
René Calles 2013-11-25 09:59:04 +00:00
parent a95065b90d
commit 33240c33df

View file

@ -265,7 +265,7 @@ ngx_rtmp_dash_write_playlist(ngx_rtmp_session_t *s)
" maxHeight=\"%ui\"\n" \
" maxFrameRate=\"%ui\">\n" \
" <Representation\n" \
" id=\"video\"\n" \
" id=\"%V_H264\"\n" \
" mimeType=\"video/mp4\"\n" \
" codecs=\"avc1.42c028\"\n" \
" width=\"%ui\"\n" \
@ -301,7 +301,7 @@ ngx_rtmp_dash_write_playlist(ngx_rtmp_session_t *s)
"23003:3:audio_channel_configuration:2011\"\n" \
" value=\"1\"/>\n" \
" <Representation\n" \
" id=\"audio\"\n" \
" id=\"%V_AAC\"\n" \
" mimeType=\"audio/mp4\"\n" \
" codecs=\"mp4a.%s\"\n" \
" audioSamplingRate=\"%ui\"\n" \
@ -366,6 +366,7 @@ ngx_rtmp_dash_write_playlist(ngx_rtmp_session_t *s)
codec_ctx->width,
codec_ctx->height,
codec_ctx->frame_rate,
&ctx->name,
codec_ctx->width,
codec_ctx->height,
codec_ctx->frame_rate,
@ -385,7 +386,8 @@ ngx_rtmp_dash_write_playlist(ngx_rtmp_session_t *s)
}
if (ctx->has_audio) {
p = ngx_slprintf(buffer, last, NGX_RTMP_DASH_MANIFEST_AUDIO,
p = ngx_slprintf(buffer, last, NGX_RTMP_DASH_MANIFEST_AUDIO,
&ctx->name,
codec_ctx->audio_codec_id == NGX_RTMP_AUDIO_AAC ?
"40.2" : "6b",
codec_ctx->sample_rate,