summaryrefslogtreecommitdiff
path: root/doc/examples/demuxing_decoding.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2016-10-18 04:23:33 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2016-10-18 15:15:12 +0200
commit2bd99564540a365d5b80d9aad6c19264b15955af (patch)
treea3ff3ee12c562f616a2cb29cd7151ce2795210a6 /doc/examples/demuxing_decoding.c
parent31a0a84216583ff270c4dced9d126fdb3ca499c0 (diff)
doc/examples/demuxing_decoding: Drop AVFrame->pts use
This code is not correct for git master Reviewed-by: Stefano Sabatini <stefasab@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'doc/examples/demuxing_decoding.c')
-rw-r--r--doc/examples/demuxing_decoding.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/doc/examples/demuxing_decoding.c b/doc/examples/demuxing_decoding.c
index 49fb6afae1..b1a216abb4 100644
--- a/doc/examples/demuxing_decoding.c
+++ b/doc/examples/demuxing_decoding.c
@@ -93,10 +93,9 @@ static int decode_packet(int *got_frame, int cached)
return -1;
}
- printf("video_frame%s n:%d coded_n:%d pts:%s\n",
+ printf("video_frame%s n:%d coded_n:%d\n",
cached ? "(cached)" : "",
- video_frame_count++, frame->coded_picture_number,
- av_ts2timestr(frame->pts, &video_dec_ctx->time_base));
+ video_frame_count++, frame->coded_picture_number);
/* copy decoded frame to destination buffer:
* this is required since rawvideo expects non aligned data */