Unverified Commit 1a10a9a8 authored by Bruno Korbar's avatar Bruno Korbar Committed by GitHub
Browse files

remove deprecated function call (#3858)


Co-authored-by: default avatarPrabhat Roy <prabhatroy@fb.com>
parent dba5cf31
...@@ -232,7 +232,7 @@ void Stream::setFramePts(DecoderHeader* header, bool flush) { ...@@ -232,7 +232,7 @@ void Stream::setFramePts(DecoderHeader* header, bool flush) {
if (flush) { if (flush) {
header->pts = nextPts_; // already in us header->pts = nextPts_; // already in us
} else { } else {
header->pts = av_frame_get_best_effort_timestamp(frame_); header->pts = frame_->best_effort_timestamp;
if (header->pts == AV_NOPTS_VALUE) { if (header->pts == AV_NOPTS_VALUE) {
header->pts = nextPts_; header->pts = nextPts_;
} else { } else {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment