Revision db4fac64 ffplay.c

View differences:

ffplay.c
636 636

  
637 637
    for (i = 0; i < sp->sub.num_rects; i++)
638 638
    {
639
        av_free(sp->sub.rects[i].bitmap);
640
        av_free(sp->sub.rects[i].rgba_palette);
639
        av_freep(&sp->sub.rects[i]->bitmap);
640
        av_freep(&sp->sub.rects[i]->rgba_palette);
641
        av_freep(&sp->sub.rects[i]);
641 642
    }
642 643

  
643 644
    av_free(sp->sub.rects);
......
721 722
                    pict.linesize[2] = vp->bmp->pitches[1];
722 723

  
723 724
                    for (i = 0; i < sp->sub.num_rects; i++)
724
                        blend_subrect(&pict, &sp->sub.rects[i],
725
                        blend_subrect(&pict, sp->sub.rects[i],
725 726
                                      vp->bmp->w, vp->bmp->h);
726 727

  
727 728
                    SDL_UnlockYUVOverlay (vp->bmp);
......
1435 1436

  
1436 1437
            for (i = 0; i < sp->sub.num_rects; i++)
1437 1438
            {
1438
                for (j = 0; j < sp->sub.rects[i].nb_colors; j++)
1439
                for (j = 0; j < sp->sub.rects[i]->nb_colors; j++)
1439 1440
                {
1440
                    RGBA_IN(r, g, b, a, sp->sub.rects[i].rgba_palette + j);
1441
                    RGBA_IN(r, g, b, a, sp->sub.rects[i]->rgba_palette + j);
1441 1442
                    y = RGB_TO_Y_CCIR(r, g, b);
1442 1443
                    u = RGB_TO_U_CCIR(r, g, b, 0);
1443 1444
                    v = RGB_TO_V_CCIR(r, g, b, 0);
1444
                    YUVA_OUT(sp->sub.rects[i].rgba_palette + j, y, u, v, a);
1445
                    YUVA_OUT(sp->sub.rects[i]->rgba_palette + j, y, u, v, a);
1445 1446
                }
1446 1447
            }
1447 1448

  

Also available in: Unified diff