Revision 35fe66ab ffplay.c

View differences:

ffplay.c
692 692
    vp = &is->pictq[is->pictq_rindex];
693 693
    if (vp->bmp) {
694 694
#if CONFIG_AVFILTER
695
         if (vp->picref->video->pixel_aspect.num == 0)
695
         if (vp->picref->video->sample_aspect_ratio.num == 0)
696 696
             aspect_ratio = 0;
697 697
         else
698
             aspect_ratio = av_q2d(vp->picref->video->pixel_aspect);
698
             aspect_ratio = av_q2d(vp->picref->video->sample_aspect_ratio);
699 699
#else
700 700

  
701 701
        /* XXX: use variable in the frame */
......
1688 1688

  
1689 1689
    picref->pts = pts;
1690 1690
    picref->pos = priv->frame->pkt_pos;
1691
    picref->video->pixel_aspect = priv->frame->sample_aspect_ratio;
1691
    picref->video->sample_aspect_ratio = priv->frame->sample_aspect_ratio;
1692 1692
    avfilter_start_frame(link, picref);
1693 1693
    avfilter_draw_slice(link, 0, link->h, 1);
1694 1694
    avfilter_end_frame(link);

Also available in: Unified diff