[FFmpeg-cvslog] r20645 - trunk/libavcodec/mpeg12.c
michael
subversion
Sun Nov 29 00:17:46 CET 2009
Author: michael
Date: Sun Nov 29 00:17:46 2009
New Revision: 20645
Log:
Factorize "s->first_slice = 1" out.
Modified:
trunk/libavcodec/mpeg12.c
Modified: trunk/libavcodec/mpeg12.c
==============================================================================
--- trunk/libavcodec/mpeg12.c Sun Nov 29 00:05:06 2009 (r20644)
+++ trunk/libavcodec/mpeg12.c Sun Nov 29 00:17:46 2009 (r20645)
@@ -1384,7 +1384,6 @@ static int mpeg1_decode_picture(AVCodecC
s->y_dc_scale = 8;
s->c_dc_scale = 8;
- s->first_slice = 1;
return 0;
}
@@ -1533,7 +1532,6 @@ static void mpeg_decode_picture_coding_e
s->pict_type= FF_B_TYPE;
s->current_picture.pict_type= s->pict_type;
s->current_picture.key_frame= s->pict_type == FF_I_TYPE;
- s->first_slice= 1;
}
s->intra_dc_precision = get_bits(&s->gb, 2);
s->picture_structure = get_bits(&s->gb, 2);
@@ -2316,6 +2314,7 @@ static int decode_chunks(AVCodecContext
if(mpeg1_decode_picture(avctx,
buf_ptr, input_size) < 0)
s2->pict_type=0;
+ s2->first_slice = 1;
last_code= PICTURE_START_CODE;
}else{
av_log(avctx, AV_LOG_ERROR, "ignoring pic after %X\n", last_code);
More information about the ffmpeg-cvslog
mailing list