On 04/09/2012 12:23 AM, Anton Khirnov wrote:

> ---
>  avconv.c |    3 +++
>  1 files changed, 3 insertions(+), 0 deletions(-)
> 
> diff --git a/avconv.c b/avconv.c
> index d727e80..a94c8b1 100644
> --- a/avconv.c
> +++ b/avconv.c
> @@ -2213,6 +2213,9 @@ static int transcode_video(InputStream *ist, AVPacket 
> *pkt, int *got_output, int
>      quality = same_quant ? decoded_frame->quality : 0;
>      if (!*got_output) {
>          /* no picture yet */
> +        if (!pkt->size)
> +            for (i = 0; i < ist->nb_filters; i++)
> +                av_buffersrc_buffer(ist->filters[i]->filter, NULL);
>          return ret;
>      }
>      decoded_frame->pts = guess_correct_pts(&ist->pts_ctx, 
> decoded_frame->pkt_pts,


LGTM

-Justin

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

Reply via email to