[FFmpeg-cvslog] r13960 - trunk/libavformat/rtpenc.c

lucabe subversion
Wed Jun 25 13:55:57 CEST 2008


Author: lucabe
Date: Wed Jun 25 13:55:57 2008
New Revision: 13960

Log:
Remove improper usage of AV_TIME_BASE_Q


Modified:
   trunk/libavformat/rtpenc.c

Modified: trunk/libavformat/rtpenc.c
==============================================================================
--- trunk/libavformat/rtpenc.c	(original)
+++ trunk/libavformat/rtpenc.c	Wed Jun 25 13:55:57 2008
@@ -81,7 +81,7 @@ static int rtp_write_header(AVFormatCont
         }
         if (st->codec->codec_type == CODEC_TYPE_VIDEO) {
             /* FIXME: We should round down here... */
-            s->max_frames_per_packet = av_rescale_q(s1->max_delay, AV_TIME_BASE_Q, st->codec->time_base);
+            s->max_frames_per_packet = av_rescale_q(s1->max_delay, (AVRational){1, 1000000}, st->codec->time_base);
         }
     }
 
@@ -126,7 +126,7 @@ static void rtcp_send_sr(AVFormatContext
 
     if (s->first_rtcp_ntp_time == AV_NOPTS_VALUE) s->first_rtcp_ntp_time = ntp_time;
     s->last_rtcp_ntp_time = ntp_time;
-    rtp_ts = av_rescale_q(ntp_time - s->first_rtcp_ntp_time, AV_TIME_BASE_Q,
+    rtp_ts = av_rescale_q(ntp_time - s->first_rtcp_ntp_time, (AVRational){1, 1000000},
                           s1->streams[0]->time_base) + s->base_timestamp;
     put_byte(s1->pb, (RTP_VERSION << 6));
     put_byte(s1->pb, 200);




More information about the ffmpeg-cvslog mailing list