summaryrefslogtreecommitdiff
path: root/ffplay.c
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2010-03-06 19:19:11 +0000
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2010-03-06 19:19:11 +0000
commitfd9da2527cccaccff1db9c610f20c3b57d9dbeb3 (patch)
tree5e159f2185e6d5ad6f5f96c184398ea3cea2f9c6 /ffplay.c
parentbfca77771370488b79dd698d365379ec872f5f62 (diff)
Use av_get_pict_type_char() in debug code within output_picture2(),
simplify. Originally committed as revision 22247 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffplay.c')
-rw-r--r--ffplay.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/ffplay.c b/ffplay.c
index 474240ca93..5d0b45aa54 100644
--- a/ffplay.c
+++ b/ffplay.c
@@ -1442,17 +1442,8 @@ static int output_picture2(VideoState *is, AVFrame *src_frame, double pts1, int6
is->video_clock += frame_delay;
#if defined(DEBUG_SYNC) && 0
- {
- int ftype;
- if (src_frame->pict_type == FF_B_TYPE)
- ftype = 'B';
- else if (src_frame->pict_type == FF_I_TYPE)
- ftype = 'I';
- else
- ftype = 'P';
printf("frame_type=%c clock=%0.3f pts=%0.3f\n",
- ftype, pts, pts1);
- }
+ av_get_pict_type_char(src_frame->pict_type), pts, pts1);
#endif
return queue_picture(is, src_frame, pts, pos);
}