Mercurial > libavcodec.hg
comparison rawdec.c @ 6424:66969d0e4a6d libavcodec
1000l parenthesis
author | bcoudurier |
---|---|
date | Thu, 28 Feb 2008 16:11:56 +0000 |
parents | 4cf5fde3c99e |
children | 48759bfbd073 |
comparison
equal
deleted
inserted
replaced
6423:4cf5fde3c99e | 6424:66969d0e4a6d |
---|---|
107 frame->interlaced_frame = avctx->coded_frame->interlaced_frame; | 107 frame->interlaced_frame = avctx->coded_frame->interlaced_frame; |
108 frame->top_field_first = avctx->coded_frame->top_field_first; | 108 frame->top_field_first = avctx->coded_frame->top_field_first; |
109 | 109 |
110 //4bpp raw in avi and mov (yes this is ugly ...) | 110 //4bpp raw in avi and mov (yes this is ugly ...) |
111 if(avctx->bits_per_sample == 4 && avctx->pix_fmt==PIX_FMT_PAL8 && | 111 if(avctx->bits_per_sample == 4 && avctx->pix_fmt==PIX_FMT_PAL8 && |
112 !avctx->codec_tag || avctx->codec_tag == MKTAG('r','a','w',' ')){ | 112 (!avctx->codec_tag || avctx->codec_tag == MKTAG('r','a','w',' '))){ |
113 int i; | 113 int i; |
114 for(i=256*2; i+1 < context->length>>1; i++){ | 114 for(i=256*2; i+1 < context->length>>1; i++){ |
115 context->buffer[2*i+0]= buf[i-256*2]>>4; | 115 context->buffer[2*i+0]= buf[i-256*2]>>4; |
116 context->buffer[2*i+1]= buf[i-256*2]&15; | 116 context->buffer[2*i+1]= buf[i-256*2]&15; |
117 } | 117 } |