Changeset 472d88ba7770dd4bf6f9e0dbaa3637f52a24ab8f

Show
Ignore:
Timestamp:
24/05/07 23:27:14 (2 years ago)
Author:
Damien Fouilleul <damienf@videolan.org>
git-committer:
Damien Fouilleul <damienf@videolan.org> 1180042034 +0000
git-parent:

[bd9935bfe337caa2c83cf0e2eb8f41e7b366772c]

git-author:
Damien Fouilleul <damienf@videolan.org> 1180042034 +0000
Message:

- libmpeg2 codec: uses Y plane pitch rather then picture width as stride, hopefully closes #1184

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/codec/libmpeg2.c

    r7b0773e r472d88b  
    243243                        break; 
    244244                    mpeg2_set_buf( p_sys->p_mpeg2dec, buf, p_pic ); 
    245                     mpeg2_stride( p_sys->p_mpeg2dec, p_pic->format.i_width ); 
     245                    mpeg2_stride( p_sys->p_mpeg2dec, p_pic->p[Y_PLANE].i_pitch ); 
    246246                } 
    247247                p_sys->p_picture_to_destroy = p_pic; 
     
    323323 
    324324            mpeg2_set_buf( p_sys->p_mpeg2dec, buf, p_pic ); 
    325             mpeg2_stride( p_sys->p_mpeg2dec, p_pic->format.i_width ); 
     325       mpeg2_stride( p_sys->p_mpeg2dec, p_pic->p[Y_PLANE].i_pitch ); 
    326326 
    327327            /* This picture will never go through display_picture. */ 
     
    441441 
    442442                mpeg2_set_buf( p_sys->p_mpeg2dec, buf, p_pic ); 
    443                 mpeg2_stride( p_sys->p_mpeg2dec, p_pic->format.i_width ); 
     443       mpeg2_stride( p_sys->p_mpeg2dec, p_pic->p[Y_PLANE].i_pitch ); 
    444444            } 
    445445        } 
     
    523523                    break; 
    524524                mpeg2_set_buf( p_sys->p_mpeg2dec, buf, p_pic ); 
    525                 mpeg2_stride( p_sys->p_mpeg2dec, p_pic->format.i_width ); 
     525       mpeg2_stride( p_sys->p_mpeg2dec, p_pic->p[Y_PLANE].i_pitch ); 
    526526            } 
    527527            p_sys->p_picture_to_destroy = p_pic;