On Thu, Jan 31, 2013 at 09:08:42PM +0100, Anton Khirnov wrote:
> Packet pts is a very unreliable indicator, use
> AVCodecContext.frame_number instead.
> ---
> libavcodec/bink.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/libavcodec/bink.c b/libavcodec/bink.c
> index 7b81d05..3a74cf9 100644
> --- a/libavcodec/bink.c
> +++ b/libavcodec/bink.c
> @@ -1200,7 +1200,8 @@ static int decode_frame(AVCodecContext *avctx, void
> *data, int *got_frame, AVPac
> if ((ret = bink_decode_plane(c, &gb, plane_idx, !!plane)) < 0)
> return ret;
> } else {
> - if ((ret = binkb_decode_plane(c, &gb, plane_idx, !pkt->pts,
> !!plane)) < 0)
> + if ((ret = binkb_decode_plane(c, &gb, plane_idx,
> + !avctx->frame_number, !!plane)) <
> 0)
> return ret;
> }
> if (get_bits_count(&gb) >= bits_count)
> --
probably OK
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel