Browse Source

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>
(cherry picked from commit 2bd9956454)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
tags/n3.1.5
Michael Niedermayer 9 years ago
parent
commit
2fece989f8
1 changed files with 2 additions and 3 deletions
  1. +2
    -3
      doc/examples/demuxing_decoding.c

+ 2
- 3
doc/examples/demuxing_decoding.c View File

@@ -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 */


Loading…
Cancel
Save