Mercurial > libavcodec.hg
comparison mpeg12.c @ 1503:d53b1fa09b60 libavcodec
mpeg1 + trellis quant segfault fix
| author | michaelni |
|---|---|
| date | Sun, 05 Oct 2003 15:32:39 +0000 |
| parents | a2930ee10a6b |
| children | 3b31998fe22f |
comparison
equal
deleted
inserted
replaced
| 1502:c7858e2bd1c1 | 1503:d53b1fa09b60 |
|---|---|
| 787 }else{ | 787 }else{ |
| 788 s->min_qcoeff=-2047; | 788 s->min_qcoeff=-2047; |
| 789 s->max_qcoeff= 2047; | 789 s->max_qcoeff= 2047; |
| 790 } | 790 } |
| 791 s->intra_ac_vlc_length= | 791 s->intra_ac_vlc_length= |
| 792 s->inter_ac_vlc_length= uni_mpeg1_ac_vlc_len; | 792 s->inter_ac_vlc_length= |
| 793 s->intra_ac_vlc_last_length= | |
| 794 s->inter_ac_vlc_last_length= uni_mpeg1_ac_vlc_len; | |
| 793 } | 795 } |
| 794 | 796 |
| 795 static inline void encode_dc(MpegEncContext *s, int diff, int component) | 797 static inline void encode_dc(MpegEncContext *s, int diff, int component) |
| 796 { | 798 { |
| 797 if (component == 0) { | 799 if (component == 0) { |
