[FFmpeg-devel] [PATCH 3/5] Use int for num_faulty_pts/dts instead of int64_t
Alexander Strange
astrange
Mon Jul 26 22:16:08 CEST 2010
---
cmdutils.h | 4 ++--
ffplay.c | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/cmdutils.h b/cmdutils.h
index f2ad34a..7f62fb7 100644
--- a/cmdutils.h
+++ b/cmdutils.h
@@ -221,8 +221,8 @@ int read_yesno(void);
int read_file(const char *filename, char **bufptr, size_t *size);
typedef struct {
- int64_t num_faulty_pts; /// Number of incorrect PTS values so far
- int64_t num_faulty_dts; /// Number of incorrect DTS values so far
+ int num_faulty_pts; /// Number of incorrect PTS values so far
+ int num_faulty_dts; /// Number of incorrect DTS values so far
int64_t last_pts; /// PTS of the last frame
int64_t last_dts; /// DTS of the last frame
} PtsCorrectionContext;
diff --git a/ffplay.c b/ffplay.c
index b48611a..c74c56d 100644
--- a/ffplay.c
+++ b/ffplay.c
@@ -1278,7 +1278,7 @@ retry:
av_diff = 0;
if (is->audio_st && is->video_st)
av_diff = get_audio_clock(is) - get_video_clock(is);
- printf("%7.2f A-V:%7.3f s:%3.1f aq=%5dKB vq=%5dKB sq=%5dB f=%"PRId64"/%"PRId64" \r",
+ printf("%7.2f A-V:%7.3f s:%3.1f aq=%5dKB vq=%5dKB sq=%5dB f=%d/%d \r",
get_master_clock(is), av_diff, FFMAX(is->skip_frames-1, 0), aqsize / 1024, vqsize / 1024, sqsize, is->pts_ctx.num_faulty_dts, is->pts_ctx.num_faulty_pts);
fflush(stdout);
last_time = cur_time;
--
1.7.1.1
More information about the ffmpeg-devel
mailing list