[MPlayer-cvslog] r20654 - trunk/libmpeg2/slice.c
Reimar Döffinger
Reimar.Doeffinger at stud.uni-karlsruhe.de
Sat Nov 4 13:17:11 CET 2006
Hello,
On Sat, Nov 04, 2006 at 08:05:22AM +0100, henry wrote:
> Author: henry
> Date: Sat Nov 4 08:05:21 2006
> New Revision: 20654
>
> Modified:
> trunk/libmpeg2/slice.c
>
> Log:
> fix quantizer export for interlaced video
>
> Modified: trunk/libmpeg2/slice.c
> ==============================================================================
> --- trunk/libmpeg2/slice.c (original)
> +++ trunk/libmpeg2/slice.c Sat Nov 4 08:05:21 2006
> @@ -1569,9 +1569,18 @@
>
> #define NEXT_MACROBLOCK \
> do { \
> - if(decoder->quant_store) \
> + if(decoder->quant_store) { \
> + if (decoder->picture_structure == TOP_FIELD) \
> + decoder->quant_store[2*decoder->quant_stride*(decoder->v_offset>>4) \
> + +(decoder->offset>>4)] = decoder->quantizer_scale; \
> + else if (decoder->picture_structure == BOTTOM_FIELD) \
> + decoder->quant_store[2*decoder->quant_stride*(decoder->v_offset>>4) \
> + + decoder->quant_stride \
stray tab. Use e.g. vi's :set list functionality to check your patches
before applying.
Greetings,
Reimar Döffinger
> + +(decoder->offset>>4)] = decoder->quantizer_scale; \
> + else \
> decoder->quant_store[decoder->quant_stride*(decoder->v_offset>>4) \
> +(decoder->offset>>4)] = decoder->quantizer_scale; \
> + } \
> decoder->offset += 16; \
> if (decoder->offset == decoder->width) { \
> do { /* just so we can use the break statement */ \
> _______________________________________________
> MPlayer-cvslog mailing list
> MPlayer-cvslog at mplayerhq.hu
> http://lists.mplayerhq.hu/mailman/listinfo/mplayer-cvslog
More information about the MPlayer-cvslog
mailing list