diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2005-05-17 08:46:40 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2005-05-17 08:46:40 +0000 |
commit | 36661afe022ef048f702d03ca957b743fb38758d (patch) | |
tree | da6161a26dd453468802269583880c1659f80ce4 /libavcodec/vp3.c | |
parent | a2df5a50ae1076b2e6225789c1f34fcaa555591c (diff) | |
download | ffmpeg-36661afe022ef048f702d03ca957b743fb38758d.tar.gz |
fix last coeff
Originally committed as revision 4254 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/vp3.c')
-rw-r--r-- | libavcodec/vp3.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libavcodec/vp3.c b/libavcodec/vp3.c index 7202388f39..8b9f7c829c 100644 --- a/libavcodec/vp3.c +++ b/libavcodec/vp3.c @@ -833,7 +833,7 @@ static void init_frame(Vp3DecodeContext *s, GetBitContext *gb) for (i = 0; i < s->fragment_count; i++) { s->all_fragments[i].coeffs = zero_block; s->all_fragments[i].coeff_count = 0; - s->all_fragments[i].last_coeff = 0; + s->all_fragments[i].last_coeff = -1; s->all_fragments[i].motion_x = 0xbeef; s->all_fragments[i].motion_y = 0xbeef; } @@ -2036,6 +2036,8 @@ static void reverse_dc_prediction(Vp3DecodeContext *s, /* save the DC */ last_dc[current_frame_type] = s->all_fragments[i].coeffs[0]; + if(s->all_fragments[i].coeffs[0] && s->all_fragments[i].last_coeff<0) + s->all_fragments[i].last_coeff= 0; } } } |