mirror of
https://github.com/mpv-player/mpv
synced 2025-04-01 14:50:07 +00:00
fix quantizer export for interlaced video
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20654 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
46afb40907
commit
440d6200ac
@ -1569,9 +1569,18 @@ do { \
|
||||
|
||||
#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 \
|
||||
+(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 */ \
|
||||
|
Loading…
Reference in New Issue
Block a user