Soft Works:
> Signed-off-by: softworkz <softwo...@hotmail.com>
> ---
>  fftools/ffmpeg.c | 32 ++++++++++++++++----------------
>  1 file changed, 16 insertions(+), 16 deletions(-)
> 
> diff --git a/fftools/ffmpeg.c b/fftools/ffmpeg.c
> index e205945e63..b47e596878 100644
> --- a/fftools/ffmpeg.c
> +++ b/fftools/ffmpeg.c
> @@ -2216,22 +2216,22 @@ static int ifilter_send_frame(InputFilter *ifilter, 
> AVFrame *frame)
>  
>      /* (re)init the graph if possible, otherwise buffer the frame and return 
> */
>      if (need_reinit || !fg->graph) {
> -            if (!ifilter_has_all_input_formats(fg)) {
> -                AVFrame *tmp = av_frame_clone(frame);
> -                if (!tmp)
> -                    return AVERROR(ENOMEM);
> -                av_frame_unref(frame);
> -
> -                if (!av_fifo_space(ifilter->frame_queue)) {
> -                    ret = av_fifo_realloc2(ifilter->frame_queue, 2 * 
> av_fifo_size(ifilter->frame_queue));
> -                    if (ret < 0) {
> -                        av_frame_free(&tmp);
> -                        return ret;
> -                    }
> -                }
> -                av_fifo_generic_write(ifilter->frame_queue, &tmp, 
> sizeof(tmp), NULL);
> -                return 0;
> -            }
> +             if (!ifilter_has_all_input_formats(fg)) {
> +                     AVFrame *tmp = av_frame_clone(frame);
> +                     if (!tmp)
> +                             return AVERROR(ENOMEM);
> +                     av_frame_unref(frame);
> +
> +                     if (!av_fifo_space(ifilter->frame_queue)) {
> +                             ret = av_fifo_realloc2(ifilter->frame_queue, 2 
> * av_fifo_size(ifilter->frame_queue));
> +                             if (ret < 0) {
> +                                     av_frame_free(&tmp);
> +                                     return ret;
> +                             }
> +                     }
> +                     av_fifo_generic_write(ifilter->frame_queue, &tmp, 
> sizeof(tmp), NULL);
> +                     return 0;
> +             }
>  
>          ret = reap_filters(1);
>          if (ret < 0 && ret != AVERROR_EOF) {
> 

Don't use tabs.

- Andreas
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to