~siretart/vlc/debian-packaging

« back to all changes in this revision

Viewing changes to modules/codec/avcodec/video.c

  • Committer: Sebastian Ramacher
  • Date: 2016-01-31 20:58:37 UTC
  • mfrom: (1.2.39)
  • Revision ID: git-v1:b7ac1de93ecf7cd3d86898544433974ce0af7086
Merge tag 'upstream/2.2.2'

Upstream version 2.2.2

# gpg: Signature made Sun 31 Jan 2016 21:57:53 CET using RSA key ID 6EA71993
# gpg: Good signature from "Sebastian Ramacher <sebastian@ramacher.at>"
# gpg:                 aka "Sebastian Ramacher <s.ramacher@gmail.com>"
# gpg:                 aka "Sebastian Ramacher <s.ramacher@gmx.at>"
# gpg:                 aka "Sebastian Ramacher <s.ramacher@student.tugraz.at>"
# gpg:                 aka "Sebastian Ramacher <sramacher@debian.org>"
# gpg:                 aka "Sebastian Ramacher <sebastian.ramacher@iaik.tugraz.at>"

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 * video.c: video decoder using the libavcodec library
3
3
 *****************************************************************************
4
4
 * Copyright (C) 1999-2001 VLC authors and VideoLAN
5
 
 * $Id: a063754229315e3383bca4dce2aa6c026aa26bc0 $
 
5
 * $Id: 0ecd7fec5484e8386652e5458fa3b888ce7d08e8 $
6
6
 *
7
7
 * Authors: Laurent Aimar <fenrir@via.ecp.fr>
8
8
 *          Gildas Bazin <gbazin@videolan.org>
191
191
        p_dec->fmt_out.video.i_frame_rate_base =
192
192
            p_dec->fmt_in.video.i_frame_rate_base;
193
193
    }
 
194
#if LIBAVCODEC_VERSION_CHECK( 56, 5, 0, 7, 100 )
 
195
    else if( p_context->framerate.num > 0 && p_context->framerate.den > 0 )
 
196
    {
 
197
        p_dec->fmt_out.video.i_frame_rate = p_context->framerate.num;
 
198
        p_dec->fmt_out.video.i_frame_rate_base = p_context->framerate.den;
 
199
# if LIBAVCODEC_VERSION_MICRO <  100
 
200
        // for some reason libav don't thinkg framerate presents actually same thing as in ffmpeg
 
201
        p_dec->fmt_out.video.i_frame_rate_base *= __MAX( p_context->ticks_per_frame, 1 );
 
202
# endif
 
203
    }
 
204
#endif
194
205
    else if( p_context->time_base.num > 0 && p_context->time_base.den > 0 )
195
206
    {
196
207
        p_dec->fmt_out.video.i_frame_rate = p_context->time_base.den;