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:
0313653
)
vc1dec: Fix tff == 0 handling in init_block_index()
author
Michael Niedermayer
<michaelni@gmx.at>
Sat, 20 Apr 2013 00:15:13 +0000
(
02:15
+0200)
committer
Martin Storsjö
<martin@martin.st>
Wed, 15 May 2013 08:39:17 +0000
(11:39 +0300)
This fixes several files from VLC ticket 5887.
Signed-off-by: Martin Storsjö <martin@martin.st>
libavcodec/vc1dec.c
patch
|
blob
|
history
diff --git
a/libavcodec/vc1dec.c
b/libavcodec/vc1dec.c
index
1238da2
..
b07214a
100644
(file)
--- a/
libavcodec/vc1dec.c
+++ b/
libavcodec/vc1dec.c
@@
-77,7
+77,7
@@
static void init_block_index(VC1Context *v)
{
MpegEncContext *s = &v->s;
ff_init_block_index(s);
- if (v->field_mode &&
v->second_field
) {
+ if (v->field_mode &&
!(v->second_field ^ v->tff)
) {
s->dest[0] += s->current_picture_ptr->f.linesize[0];
s->dest[1] += s->current_picture_ptr->f.linesize[1];
s->dest[2] += s->current_picture_ptr->f.linesize[2];