comparison msmpeg4.c @ 983:ca2a303ea039 libavcodec

fixed wmv2 slices
author michaelni
date Thu, 09 Jan 2003 11:37:08 +0000
parents caa77cd960c0
children 1f9afd8b9131
comparison
equal deleted inserted replaced
982:a1866d06df1e 983:ca2a303ea039
500 } 500 }
501 501
502 static inline void handle_slices(MpegEncContext *s){ 502 static inline void handle_slices(MpegEncContext *s){
503 if (s->mb_x == 0) { 503 if (s->mb_x == 0) {
504 if (s->slice_height && (s->mb_y % s->slice_height) == 0) { 504 if (s->slice_height && (s->mb_y % s->slice_height) == 0) {
505 if(s->msmpeg4_version != 4){ 505 if(s->msmpeg4_version < 4){
506 ff_mpeg4_clean_buffers(s); 506 ff_mpeg4_clean_buffers(s);
507 } 507 }
508 s->first_slice_line = 1; 508 s->first_slice_line = 1;
509 } else { 509 } else {
510 s->first_slice_line = 0; 510 s->first_slice_line = 0;
689 */ 689 */
690 a = dc_val[ - 1]; 690 a = dc_val[ - 1];
691 b = dc_val[ - 1 - wrap]; 691 b = dc_val[ - 1 - wrap];
692 c = dc_val[ - wrap]; 692 c = dc_val[ - wrap];
693 693
694 if(s->first_slice_line && (n&2)==0 && s->msmpeg4_version!=4){ 694 if(s->first_slice_line && (n&2)==0 && s->msmpeg4_version<4){
695 b=c=1024; 695 b=c=1024;
696 } 696 }
697 697
698 /* XXX: the following solution consumes divisions, but it does not 698 /* XXX: the following solution consumes divisions, but it does not
699 necessitate to modify mpegvideo.c. The problem comes from the 699 necessitate to modify mpegvideo.c. The problem comes from the