Commit e75b2e9c authored by Hendrik Leppkes's avatar Hendrik Leppkes

Merge commit '99404597'

* commit '99404597':
  mmaldec: fix pkt_dts determination
Merged-by: 's avatarHendrik Leppkes <h.leppkes@gmail.com>
parents 264ff3dd 99404597
......@@ -619,10 +619,8 @@ static int ffmal_copy_frame(AVCodecContext *avctx, AVFrame *frame,
}
}
if (buffer->pts != MMAL_TIME_UNKNOWN) {
frame->pkt_pts = buffer->pts;
frame->pts = buffer->pts;
}
frame->pkt_pts = buffer->pts == MMAL_TIME_UNKNOWN ? AV_NOPTS_VALUE : buffer->pts;
frame->pkt_dts = AV_NOPTS_VALUE;
done:
return ret;
......
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