Commit 9ae62a73 authored by Julian Rother's avatar Julian Rother

extract-xmp: Removed duration field from output

parent d64fd2da
......@@ -84,11 +84,10 @@ int main(int argc, char *argv[])
job_failed("Opening input file failed: %s", av_err2str(err));
avformat_find_stream_info(demux, 0);
if (tag = av_dict_get(demux->metadata, "xmp", 0, 0))
ping_job(jobid, "finished", "{\"xmp_chapters\": %s, \"duration\": %f, \"log\": \"%s\"}",
get_xmpchapters(tag->value), demux->duration*av_q2d(AV_TIME_BASE_Q),
jescape(get_avlogbuf()));
ping_job(jobid, "finished", "{\"xmp_chapters\": %s, \"log\": \"%s\"}",
get_xmpchapters(tag->value), jescape(get_avlogbuf()));
else
ping_job(jobid, "finished", "{\"duration\": %f, \"log\": \"%s\"}",
demux->duration*av_q2d(AV_TIME_BASE_Q), jescape(get_avlogbuf()));
ping_job(jobid, "finished", "{\"xmp_chapters\": [], \"log\": \"%s\"}",
jescape(get_avlogbuf()));
return 0;
}
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