On 05/03/15 09:19, Martin Storsjö wrote:
> From: Timo Rothenpieler <[email protected]>
> 
> ---
>  libavformat/dashenc.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/libavformat/dashenc.c b/libavformat/dashenc.c
> index 197af19..6b385ae 100644
> --- a/libavformat/dashenc.c
> +++ b/libavformat/dashenc.c
> @@ -645,7 +645,7 @@ static int dash_write_header(AVFormatContext *s)
>          else if (st->codec->codec_type == AVMEDIA_TYPE_AUDIO)
>              c->has_audio = 1;
>  
> -        set_codec_str(s, os->ctx->streams[0]->codec, os->codec_str, 
> sizeof(os->codec_str));
> +        set_codec_str(s, st->codec, os->codec_str, sizeof(os->codec_str));
>          os->first_pts = AV_NOPTS_VALUE;
>          os->max_pts = AV_NOPTS_VALUE;
>          os->segment_index = 1;
> 

Sure.
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to