Mercurial > libavcodec.hg
comparison h264.c @ 9065:3dbe483ce6c4 libavcodec
Fix SVQ3 regression since ticks_per_frame=2.
author | michael |
---|---|
date | Fri, 27 Feb 2009 14:01:32 +0000 |
parents | 3c5920f57063 |
children | 77cbbce1be94 |
comparison
equal
deleted
inserted
replaced
9064:ca19176df986 | 9065:3dbe483ce6c4 |
---|---|
2199 h->prev_poc_msb= 1<<16; | 2199 h->prev_poc_msb= 1<<16; |
2200 h->sei_recovery_frame_cnt = -1; | 2200 h->sei_recovery_frame_cnt = -1; |
2201 h->sei_dpb_output_delay = 0; | 2201 h->sei_dpb_output_delay = 0; |
2202 h->sei_cpb_removal_delay = -1; | 2202 h->sei_cpb_removal_delay = -1; |
2203 h->sei_buffering_period_present = 0; | 2203 h->sei_buffering_period_present = 0; |
2204 avctx->ticks_per_frame = 2; | 2204 if(avctx->codec_id == CODEC_ID_H264) |
2205 avctx->ticks_per_frame = 2; | |
2205 return 0; | 2206 return 0; |
2206 } | 2207 } |
2207 | 2208 |
2208 static int frame_start(H264Context *h){ | 2209 static int frame_start(H264Context *h){ |
2209 MpegEncContext * const s = &h->s; | 2210 MpegEncContext * const s = &h->s; |