On 26/11/11 06:55, Mashiat Sarker Shakkhar wrote:
-                ff_er_add_slice(s, 0, s->start_mb_y, s->mb_x, s->mb_y, 
(AC_END|DC_END|MV_END));
+                ff_er_add_slice(s, 0, s->start_mb_y, s->mb_x, s->mb_y, 
(AC_ERROR|DC_ERROR|MV_ERROR));

The same marking is used in other situations in which we are getting more bits and has the same TODO message.

git grep -nh -B 2 "AC_END|DC_END|MV_END" libavcodec/vc1dec.c

4564-        ff_draw_horiz_band(s, (s->mb_height - 1) * 16, 16);
4565: ff_er_add_slice(s, 0, 0, s->mb_width - 1, s->mb_height - 1, (AC_END|DC_END|MV_END));
--
4673-            if (get_bits_count(&s->gb) > v->bits) {
4674-                // TODO: may need modification to handle slice coding
4675: ff_er_add_slice(s, 0, s->start_mb_y, s->mb_x, s->mb_y, (AC_END|DC_END|MV_END));
--
4698-        ff_draw_horiz_band(s, (s->end_mb_y-1)*16, 16);
4699- ff_er_add_slice(s, 0, s->start_mb_y << v->field_mode, s->mb_width - 1, 4700: (s->end_mb_y << v->field_mode) - 1, (AC_END|DC_END|MV_END));
--
4749- if (get_bits_count(&s->gb) > v->bits || get_bits_count(&s->gb) < 0) {
4750-                // TODO: may need modification to handle slice coding
4751: ff_er_add_slice(s, 0, s->start_mb_y, s->mb_x, s->mb_y, (AC_END|DC_END|MV_END));
--
4773-        ff_draw_horiz_band(s, (s->end_mb_y - 1) * 16, 16);
4774- ff_er_add_slice(s, 0, s->start_mb_y << v->field_mode, s->mb_width - 1, 4775: (s->end_mb_y << v->field_mode) - 1, (AC_END|DC_END|MV_END));
--
4834-        ff_draw_horiz_band(s, (s->end_mb_y - 1) * 16, 16);
4835- ff_er_add_slice(s, 0, s->start_mb_y << v->field_mode, s->mb_width - 1, 4836: (s->end_mb_y << v->field_mode) - 1, (AC_END|DC_END|MV_END));
--
4841-    MpegEncContext *s = &v->s;
4842-
4843: ff_er_add_slice(s, 0, s->start_mb_y, s->mb_width - 1, s->end_mb_y - 1, (AC_END|DC_END|MV_END));

--

Luca Barbato
Gentoo/linux
http://dev.gentoo.org/~lu_zero

_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to