Changeset e45ec379088f4589c6ac799c7fc6294b99d59667

Show
Ignore:
Timestamp:
15/03/05 19:59:48 (4 years ago)
Author:
Christophe Massiot <massiot@videolan.org>
git-committer:
Christophe Massiot <massiot@videolan.org> 1110913188 +0000
git-parent:

[db7082603c7279cae1145530d221016ffe98b2be]

git-author:
Christophe Massiot <massiot@videolan.org> 1110913188 +0000
Message:

* modules/codec/ffmpeg/encoder.c: Fixed aspect ratio encoding.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/codec/ffmpeg/encoder.c

    r3cc971d re45ec37  
    347347 
    348348#if LIBAVCODEC_BUILD >= 4687 
    349         av_reduce( &i_aspect_num, &i_aspect_den, 
     349        av_reduce( &p_context->sample_aspect_ratio.num, 
     350                   &p_context->sample_aspect_ratio.den, 
    350351                   p_enc->fmt_in.video.i_aspect, 
    351352                   VOUT_ASPECT_FACTOR, 1 << 30 /* something big */ ); 
    352         av_reduce( &p_context->sample_aspect_ratio.num, 
    353                    &p_context->sample_aspect_ratio.den, 
    354                    i_aspect_num * (int64_t)p_context->height, 
    355                    i_aspect_den * (int64_t)p_context->width, 1 << 30 ); 
    356353#else 
    357354        p_context->aspect_ratio = ((float)p_enc->fmt_in.video.i_aspect) /