From 267e9dfa9dc5375949926edd6fe64ef1d5c56d56 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Tue, 20 Sep 2005 18:47:08 +0000 Subject: [PATCH] doxygenize a few comments very minor cleanup Originally committed as revision 4601 to svn://svn.ffmpeg.org/ffmpeg/trunk --- ffplay.c | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/ffplay.c b/ffplay.c index 7c3509a8c6..c8db5bd443 100644 --- a/ffplay.c +++ b/ffplay.c @@ -90,7 +90,7 @@ typedef struct PacketQueue { #define SUBPICTURE_QUEUE_SIZE 4 typedef struct VideoPicture { - double pts; /* presentation time stamp for this picture */ + double pts; ///pictq_mutex); } +/** + * + * @param pts the dts of the pkt / pts of the frame and guessed if not known + */ static int queue_picture(VideoState *is, AVFrame *src_frame, double pts) { VideoPicture *vp; @@ -1221,7 +1220,10 @@ static int queue_picture(VideoState *is, AVFrame *src_frame, double pts) return 0; } -/* compute the exact PTS for the picture if it is omitted in the stream */ +/** + * compute the exact PTS for the picture if it is omitted in the stream + * @param pts1 the dts of the pkt / pts of the frame + */ static int output_picture2(VideoState *is, AVFrame *src_frame, double pts1) { double frame_delay, pts; @@ -1238,9 +1240,7 @@ static int output_picture2(VideoState *is, AVFrame *src_frame, double pts1) frame_delay = av_q2d(is->video_st->codec->time_base); /* for MPEG2, the frame can be repeated, so we update the clock accordingly */ - if (src_frame->repeat_pict) { - frame_delay += src_frame->repeat_pict * (frame_delay * 0.5); - } + frame_delay += src_frame->repeat_pict * (frame_delay * 0.5); is->video_clock += frame_delay; #if defined(DEBUG_SYNC) && 0