1 May 2009 14:17
r18723 - trunk/libavcodec/mpeg12.c
michael <subversion <at> mplayerhq.hu>
2009-05-01 12:17:25 GMT
2009-05-01 12:17:25 GMT
Author: michael
Date: Fri May 1 14:17:25 2009
New Revision: 18723
Log:
Factorize quantization matrix loading code out.
Modified:
trunk/libavcodec/mpeg12.c
Modified: trunk/libavcodec/mpeg12.c
==============================================================================
--- trunk/libavcodec/mpeg12.c Thu Apr 30 23:34:56 2009 (r18722)
+++ trunk/libavcodec/mpeg12.c Fri May 1 14:17:25 2009 (r18723)
<at> <at> -1470,42 +1470,31 <at> <at> static void mpeg_decode_picture_display_
);
}
+static int load_matrix(MpegEncContext *s, uint16_t matrix0[64], uint16_t matrix1[64], int intra){
+ int i;
+
+ for(i=0; i<64; i++) {
+ int j = s->dsp.idct_permutation[ ff_zigzag_direct[i] ];
+ int v = get_bits(&s->gb, 8);
+ if(v==0){
+ av_log(s->avctx, AV_LOG_ERROR, "matrix damaged\n");
+ return -1;
+ }
+ matrix0[j] = v;
+ if(matrix1)
(Continue reading)
RSS Feed