projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8787847
)
bink: fix a check for the first frame.
author
Anton Khirnov
<anton@khirnov.net>
Thu, 31 Jan 2013 19:58:27 +0000
(20:58 +0100)
committer
Anton Khirnov
<anton@khirnov.net>
Fri, 1 Feb 2013 11:41:31 +0000
(12:41 +0100)
Packet pts is a very unreliable indicator, use
AVCodecContext.frame_number instead.
libavcodec/bink.c
patch
|
blob
|
history
diff --git
a/libavcodec/bink.c
b/libavcodec/bink.c
index
7b81d05
..
3a74cf9
100644
(file)
--- 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)