~ppsspp/ppsspp/ffmpeg-upstream

« back to all changes in this revision

Viewing changes to libavcodec/utils.c

  • Committer: Sérgio Benjamim
  • Date: 2015-07-20 03:55:05 UTC
  • Revision ID: sergio_br2@yahoo.com.br-20150720035505-i1jj1zcjcnd0mc7w
Updated to 2.7.2.

Show diffs side-by-side

added added

removed removed

Lines of Context:
428
428
 
429
429
    *width  = FFALIGN(*width, w_align);
430
430
    *height = FFALIGN(*height, h_align);
431
 
    if (s->codec_id == AV_CODEC_ID_H264 || s->lowres)
 
431
    if (s->codec_id == AV_CODEC_ID_H264 || s->lowres) {
432
432
        // some of the optimized chroma MC reads one line too much
433
433
        // which is also done in mpeg decoders with lowres > 0
434
434
        *height += 2;
 
435
        *width = FFMAX(*width, 32);
 
436
    }
435
437
 
436
438
    for (i = 0; i < 4; i++)
437
439
        linesize_align[i] = STRIDE_ALIGN;