Ticket #8269: h264-aspectratio.diff

File h264-aspectratio.diff, 607 bytes (added by Joe, 14 years ago)

H.264 aspect ratio patch for MythTV libavcodec

  • libs/libavcodec/h264.c

    old new  
    17551755        s->height= 16*s->mb_height - 4*FFMIN(h->sps.crop_bottom, 3);
    17561756
    17571757    if (s->context_initialized
    1758         && (   s->width != s->avctx->width || s->height != s->avctx->height)) {
     1758        && (   s->width != s->avctx->width || s->height != s->avctx->height
     1759            || av_cmp_q(h->sps.sar, s->avctx->sample_aspect_ratio))) {
    17591760        if(h != h0)
    17601761            return -1;   // width / height changed during parallelized decoding
    17611762        free_tables(h);