On Thu, 28 Feb 2013 10:49:51 +0200, Martin Storsjö <[email protected]> wrote:
> This allows setting/overriding e.g. the bitrate parameter, which
> is required for the smoothstreaming muxer. Normally, the bitrate
> is set by the demuxer in these cases, but not all demuxers can
> provide it. This allows stream copy of data to the smoothstreaming
> muxer from such inputs.
> ---
>  avconv.c     |    2 ++
>  avconv_opt.c |    2 ++
>  2 files changed, 4 insertions(+)
> 
> diff --git a/avconv.c b/avconv.c
> index 4ad01c2..75a8f0d 100644
> --- a/avconv.c
> +++ b/avconv.c
> @@ -1766,6 +1766,8 @@ static int transcode_init(void)
>  
>              if (ost->st->codec->me_threshold)
>                  input_streams[ost->source_index]->st->codec->debug |= 
> FF_DEBUG_MV;
> +        } else {
> +            av_opt_set_dict(ost->st->codec, &ost->opts);
>          }
>      }
>  
> diff --git a/avconv_opt.c b/avconv_opt.c
> index 2a40087..7c58f49 100644
> --- a/avconv_opt.c
> +++ b/avconv_opt.c
> @@ -800,6 +800,8 @@ static OutputStream *new_output_stream(OptionsContext *o, 
> AVFormatContext *oc, e
>                     preset, ost->file_index, ost->index);
>              exit(1);
>          }
> +    } else {
> +        ost->opts = filter_codec_opts(o->g->codec_opts, AV_CODEC_ID_NONE, 
> oc, st, NULL);
>      }
>  
>      avcodec_get_context_defaults3(st->codec, ost->enc);
> -- 
> 1.7.9.4
> 

Both patches LGTM

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

Reply via email to