FrameReader: increase probesize to 10MB (#22437)

pull/22441/head
Dean Lee 4 years ago committed by GitHub
parent 2a8feb9eb9
commit 97fc8b941e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      selfdrive/ui/replay/framereader.cc

@ -66,6 +66,7 @@ FrameReader::~FrameReader() {
bool FrameReader::load(const std::string &url) { bool FrameReader::load(const std::string &url) {
pFormatCtx_ = avformat_alloc_context(); pFormatCtx_ = avformat_alloc_context();
pFormatCtx_->probesize = 10 * 1024 * 1024; // 10MB
if (avformat_open_input(&pFormatCtx_, url.c_str(), NULL, NULL) != 0) { if (avformat_open_input(&pFormatCtx_, url.c_str(), NULL, NULL) != 0) {
printf("error loading %s\n", url.c_str()); printf("error loading %s\n", url.c_str());
return false; return false;

Loading…
Cancel
Save