On 10/23/2012 02:33 AM, Anton Khirnov wrote:
> ---
>  avconv.c |    4 ----
>  1 file changed, 4 deletions(-)
> 
> diff --git a/avconv.c b/avconv.c
> index 759e1c0..3188d61 100644
> --- a/avconv.c
> +++ b/avconv.c
> @@ -1078,8 +1078,6 @@ static int decode_audio(InputStream *ist, AVPacket 
> *pkt, int *got_output)
>  
>      if (!ist->decoded_frame && !(ist->decoded_frame = avcodec_alloc_frame()))
>          return AVERROR(ENOMEM);
> -    else
> -        avcodec_get_frame_defaults(ist->decoded_frame);
>      decoded_frame = ist->decoded_frame;
>  
>      ret = avcodec_decode_audio4(avctx, decoded_frame, got_output, pkt);
> @@ -1219,8 +1217,6 @@ static int decode_video(InputStream *ist, AVPacket 
> *pkt, int *got_output)
>  
>      if (!ist->decoded_frame && !(ist->decoded_frame = avcodec_alloc_frame()))
>          return AVERROR(ENOMEM);
> -    else
> -        avcodec_get_frame_defaults(ist->decoded_frame);
>      decoded_frame = ist->decoded_frame;
>  
>      ret = avcodec_decode_video2(ist->st->codec,

Ok

-Justin

_______________________________________________
libav-devel mailing list
libav-devel@libav.org
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to