Revision 9f8008a9 ffplay.c

View differences:

ffplay.c
1582 1582
    int i, w, h, stride[4];
1583 1583
    unsigned edge;
1584 1584

  
1585
    if(av_image_check_size(w, h, 0, codec))
1586
        return -1;
1587

  
1588 1585
    if (codec->codec->capabilities & CODEC_CAP_NEG_LINESIZES)
1589 1586
        perms |= AV_PERM_NEG_LINESIZES;
1590 1587

  
......
1597 1594

  
1598 1595
    w = codec->width;
1599 1596
    h = codec->height;
1597

  
1598
    if(av_image_check_size(w, h, 0, codec))
1599
        return -1;
1600

  
1600 1601
    avcodec_align_dimensions2(codec, &w, &h, stride);
1601 1602
    edge = codec->flags & CODEC_FLAG_EMU_EDGE ? 0 : avcodec_get_edge_width();
1602 1603
    w += edge << 1;

Also available in: Unified diff