UGeorge <[email protected]> added the comment:

At the one breakpoint u suggested.

>
> You wrote that in queue_picture() vp->bmp->w is 1920 (pixels), but a few lines
> of code later vp->bmp->pitches[0] is 1024 (bytes). This situation should not 
> be
> possible.

>
> Breakpoint 2, queue_picture (is=0xb7238020, src_frame=0xb6700480, 
> pts=0.47773333333333334, pos=-1) at ffplay.c:1405
> 1405          if(vp->picref)
> (gdb) p vp->bmp
> $15 = (SDL_Overlay *) 0x8bd8170
> (gdb) p *vp->bmp
> $16 = {format = 842094169, w = 1920, h = 1080, planes = 3, pitches = 
> 0x8bd74c8, pixels = 0x8bd80f0, hwfuncs = 0xca2004,
>   hwdata = 0x8bd8290, hw_overlay = 1, UnusedBits = 0}
> (gdb) p *vp->bmp->pitches
> $17 = 1024
> (gdb) p *vp->bmp->pitches[0]
> Cannot access memory at address 0x400
> (gdb) p vp->bmp->pitches[0]
> $18 = 1024
> (gdb) p vp->bmp->pitches[1]
> $19 = 512
> (gdb) p vp->bmp->pitches[2]
> $20 = 512
> (gdb)

________________________________________________
FFmpeg issue tracker <[email protected]>
<https://roundup.ffmpeg.org/issue2079>
________________________________________________

Reply via email to