Commit 4593866e authored by Frank Galligan's avatar Frank Galligan Committed by Gerrit Code Review
Browse files

Merge "vpxdec: Fix webm fps check."

parents 1dcf0940 a9e00cd4
...@@ -501,6 +501,15 @@ webm_guess_framerate(struct input_ctx *input, ...@@ -501,6 +501,15 @@ webm_guess_framerate(struct input_ctx *input,
unsigned int i; unsigned int i;
uint64_t tstamp = 0; uint64_t tstamp = 0;
/* Check to see if we can seek before we parse any data. */
if (nestegg_track_seek(input->nestegg_ctx, input->video_track, 0)) {
fprintf(stderr,
"WARNING: Failed to guess framerate (no Cues), set to 30fps.\n");
*fps_num = 30;
*fps_den = 1;
return 0;
}
/* Guess the framerate. Read up to 1 second, or 50 video packets, /* Guess the framerate. Read up to 1 second, or 50 video packets,
* whichever comes first. * whichever comes first.
*/ */
......
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