[FFmpeg-cvslog] r16341 - trunk/libavcodec/faxcompr.c
michael
subversion
Fri Dec 26 18:04:32 CET 2008
Author: michael
Date: Fri Dec 26 18:04:31 2008
New Revision: 16341
Log:
Move sync line pointers code to the end of the loop, its simpler that way.
Modified:
trunk/libavcodec/faxcompr.c
Modified: trunk/libavcodec/faxcompr.c
==============================================================================
--- trunk/libavcodec/faxcompr.c Fri Dec 26 17:59:10 2008 (r16340)
+++ trunk/libavcodec/faxcompr.c Fri Dec 26 18:04:31 2008 (r16341)
@@ -170,11 +170,6 @@ static int decode_group3_2d_line(AVCodec
av_log(avctx, AV_LOG_ERROR, "Incorrect mode VLC\n");
return -1;
}
- //sync line pointers
- if(runs != run_start)while(run_off <= offs){
- run_off += *ref++;
- run_off += *ref++;
- }
if(!cmode){//pass mode
run_off += *ref++;
run = run_off - offs;
@@ -234,6 +229,11 @@ static int decode_group3_2d_line(AVCodec
saved_run = 0;
mode = !mode;
}
+ //sync line pointers
+ while(run_off <= offs){
+ run_off += *ref++;
+ run_off += *ref++;
+ }
}
*runs++ = saved_run;
*runs++ = 0;
More information about the ffmpeg-cvslog
mailing list