We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
int FFFMPEGMediaTracks::VideoThread() { //dasdwf AVFrame *frame = av_frame_alloc(); double pts; double duration; int ret; AVRational tb = videoStream->time_base; AVRational frame_rate = av_guess_frame_rate(FormatContext, videoStream, NULL);
if (!frame) { return AVERROR(ENOMEM); } for (;;) { ret = GetVideoFrame(frame,FormatContext); // **Exited** if (ret < 0) { av_frame_free(&frame); break; } if (!ret) { continue; } duration = (frame_rate.num && frame_rate.den ? av_q2d({ frame_rate.den, frame_rate.num }) : 0); pts = (frame->pts == AV_NOPTS_VALUE) ? NAN : frame->pts * av_q2d(tb); ret = pictq.QueuePicture(frame, pts, duration, frame->pkt_pos, viddec->GetPktSerial()); av_frame_unref(frame); if (ret < 0) { av_frame_free(&frame); break; } } av_frame_free(&frame); return 0;
}
The text was updated successfully, but these errors were encountered:
No branches or pull requests
int FFFMPEGMediaTracks::VideoThread() {
//dasdwf
AVFrame *frame = av_frame_alloc();
double pts;
double duration;
int ret;
AVRational tb = videoStream->time_base;
AVRational frame_rate = av_guess_frame_rate(FormatContext, videoStream, NULL);
}
The text was updated successfully, but these errors were encountered: