Ticket #1173: 0001-frame-delay-calculation-fixed.patch

File 0001-frame-delay-calculation-fixed.patch, 898 bytes (added by Ratio, 5 years ago)
  • libavformat/utils.c

    From 4e4449fe931de4c3af06b9683cf0da1e5b85d0b5 Mon Sep 17 00:00:00 2001
    From: Aleksey Vasenev <aleksey.vasenev@cpslabs.net>
    Date: Fri, 6 Apr 2012 10:19:33 +0400
    Subject: [PATCH] frame delay calculation fixed
    
    ---
     libavformat/utils.c |    2 +-
     1 files changed, 1 insertions(+), 1 deletions(-)
    
    diff --git a/libavformat/utils.c b/libavformat/utils.c
    index 1ab8035..db7709c 100644
    a b fail: 
    32273227 
    32283228//FIXME merge with compute_pkt_fields 
    32293229static int compute_pkt_fields2(AVFormatContext *s, AVStream *st, AVPacket *pkt){ 
    3230     int delay = FFMAX(st->codec->has_b_frames, !!st->codec->max_b_frames); 
     3230    int delay = FFMAX(!!st->codec->has_b_frames, st->codec->max_b_frames); 
    32313231    int num, den, frame_size, i; 
    32323232 
    32333233    av_dlog(s, "compute_pkt_fields2: pts:%"PRId64" dts:%"PRId64" cur_dts:%"PRId64" b:%d size:%d st:%d\n",