On Sat, 31 May 2014 15:50:40 +0200, Luca Barbato <[email protected]> wrote:
> Bug-Id: 694
> ---
> 
>  avconv.c | 29 +++++++++++++++++++++++++----
>  1 file changed, 25 insertions(+), 4 deletions(-)
> 
> diff --git a/avconv.c b/avconv.c
> index 2cee09b..2ea7952 100644
> --- a/avconv.c
> +++ b/avconv.c
> @@ -2068,10 +2068,31 @@ static int transcode_init(void)
>                     ost->sync_ist->st->index);
>          if (ost->stream_copy)
>              av_log(NULL, AV_LOG_INFO, " (copy)");
> -        else
> -            av_log(NULL, AV_LOG_INFO, " (%s -> %s)", 
> input_streams[ost->source_index]->dec ?
> -                   input_streams[ost->source_index]->dec->name : "?",
> -                   ost->enc ? ost->enc->name : "?");
> +        else {
> +            AVCodec *in_codec, *out_codec;

Those should be const.
And initialize them here, not inside if()s.

Otherwise looks fine.

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

Reply via email to