[libav-devel] [PATCH] mkv: Correctly report the latest packet had been flushed

Hendrik Leppkes h.leppkes at gmail.com
Tue Jun 9 12:13:24 CEST 2015


On Tue, Jun 9, 2015 at 10:52 AM, Luca Barbato <lu_zero at gentoo.org> wrote:
> Bug-Id: 865
> CC: libav-stable at libav.org
> ---
>
> robUx4 I want your opinion about it.
>
>  libavformat/matroskaenc.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/libavformat/matroskaenc.c b/libavformat/matroskaenc.c
> index 91c4459..b1c0020 100644
> --- a/libavformat/matroskaenc.c
> +++ b/libavformat/matroskaenc.c
> @@ -1630,7 +1630,7 @@ static int mkv_write_flush_packet(AVFormatContext *s, AVPacket *pkt)
>                  mkv_flush_dynbuf(s);
>              avio_flush(s->pb);
>          }
> -        return 0;
> +        return 1;
>      }
>      return mkv_write_packet(s, pkt);
>  }

LGTM.


More information about the libav-devel mailing list