Patch by Lars Täuber, lars D taeuber A gmx D net Originally committed as revision 19720 to svn://svn.ffmpeg.org/ffmpeg/trunk
Unified · Split
| @@ -212,7 +212,7 @@ typedef struct FFV1Context{ · 211 unmodified lines | |||
| 212 | int picture_number; | 212 | int picture_number; |
| 213 | AVFrame picture; | 213 | AVFrame picture; |
| 214 | int plane_count; | 214 | int plane_count; |
| 215 | int ac; ///< 1-> CABAC 0-> golomb rice | 215 | int ac; ///< 1=range coder <-> 0=golomb rice |
| 216 | PlaneContext plane[MAX_PLANES]; | 216 | PlaneContext plane[MAX_PLANES]; |
| 217 | int16_t quant_table[5][256]; | 217 | int16_t quant_table[5][256]; |
| 218 | int run_index; | 218 | int run_index; |
| @@ -736,7 +736,6 @@ static int encode_frame(AVCodecContext *avctx, unsigned char *buf, int buf_size, · 517 unmodified lines | |||
| 736 | uint8_t keystate=128; | 736 | uint8_t keystate=128; |
| 737 | 737 | ||
| 738 | ff_init_range_encoder(c, buf, buf_size); | 738 | ff_init_range_encoder(c, buf, buf_size); |
| 739 | // ff_init_cabac_states(c, ff_h264_lps_range, ff_h264_mps_state, ff_h264_lps_state, 64); | ||
| 740 | ff_build_rac_states(c, 0.05*(1LL<<32), 256-8); | 739 | ff_build_rac_states(c, 0.05*(1LL<<32), 256-8); |
| 741 | 740 | ||
| 742 | *p = *pict; | 741 | *p = *pict; |