[Ffmpeg-cvslog] CVS: ffmpeg/libavcodec h264.c,1.134,1.135
Michael Niedermayer CVS
michael
Sun Jun 5 17:51:23 CEST 2005
Update of /cvsroot/ffmpeg/ffmpeg/libavcodec
In directory mail:/var2/tmp/cvs-serv5579
Modified Files:
h264.c
Log Message:
10l (dont read variables before they have been set)
Index: h264.c
===================================================================
RCS file: /cvsroot/ffmpeg/ffmpeg/libavcodec/h264.c,v
retrieving revision 1.134
retrieving revision 1.135
diff -u -d -r1.134 -r1.135
--- h264.c 4 Jun 2005 15:49:54 -0000 1.134
+++ h264.c 5 Jun 2005 15:51:20 -0000 1.135
@@ -2998,18 +2998,6 @@
s->low_delay= 1;
avctx->pix_fmt= PIX_FMT_YUV420P;
- if(s->dsp.h264_idct_add == ff_h264_idct_add_c){ //FIXME little ugly
- memcpy(h->zigzag_scan, zigzag_scan, 16*sizeof(uint8_t));
- memcpy(h-> field_scan, field_scan, 16*sizeof(uint8_t));
- }else{
- int i;
- for(i=0; i<16; i++){
-#define T(x) (x>>2) | ((x<<2) & 0xF)
- h->zigzag_scan[i] = T(zigzag_scan[i]);
- h-> field_scan[i] = T( field_scan[i]);
- }
- }
-
decode_init_vlc(h);
if(avctx->extradata_size > 0 && avctx->extradata &&
@@ -4173,6 +4161,18 @@
if (!s->context_initialized) {
if (MPV_common_init(s) < 0)
return -1;
+
+ if(s->dsp.h264_idct_add == ff_h264_idct_add_c){ //FIXME little ugly
+ memcpy(h->zigzag_scan, zigzag_scan, 16*sizeof(uint8_t));
+ memcpy(h-> field_scan, field_scan, 16*sizeof(uint8_t));
+ }else{
+ int i;
+ for(i=0; i<16; i++){
+#define T(x) (x>>2) | ((x<<2) & 0xF)
+ h->zigzag_scan[i] = T(zigzag_scan[i]);
+ h-> field_scan[i] = T( field_scan[i]);
+ }
+ }
alloc_tables(h);
More information about the ffmpeg-cvslog
mailing list