changeset 9065:3dbe483ce6c4 libavcodec

Fix SVQ3 regression since ticks_per_frame=2.
author michael
date Fri, 27 Feb 2009 14:01:32 +0000
parents ca19176df986
children 77cbbce1be94
files h264.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/h264.c	Fri Feb 27 08:27:50 2009 +0000
+++ b/h264.c	Fri Feb 27 14:01:32 2009 +0000
@@ -2201,7 +2201,8 @@
     h->sei_dpb_output_delay = 0;
     h->sei_cpb_removal_delay = -1;
     h->sei_buffering_period_present = 0;
-    avctx->ticks_per_frame = 2;
+    if(avctx->codec_id == CODEC_ID_H264)
+        avctx->ticks_per_frame = 2;
     return 0;
 }