Commit cbd51efa authored by Julian Rother's avatar Julian Rother

thumbnail: Disabled seeking in live streams (quick fix)

parent c3a428c5
Pipeline #215 passed with stage
in 7 minutes and 1 second
...@@ -76,7 +76,8 @@ int main(int argc, char *argv[]) ...@@ -76,7 +76,8 @@ int main(int argc, char *argv[])
job_failed("Writing temporary file failed: %s", av_err2str(err)); job_failed("Writing temporary file failed: %s", av_err2str(err));
/* Create thumbnail */ /* Create thumbnail */
av_seek_frame(demux, -1, (2L*demux->duration)/5L, 0); if (!jlookup(argv[4], "srcurl"))
av_seek_frame(demux, -1, (2L*demux->duration)/5L, 0);
memset(&pkt, 0, sizeof(pkt)); memset(&pkt, 0, sizeof(pkt));
av_init_packet(&pkt); av_init_packet(&pkt);
frame = av_frame_alloc(); frame = av_frame_alloc();
......
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