21 #include <quvi/quvi.h>
34 #define OFFSET(x) offsetof(LibQuviContext, x)
35 #define FLAGS AV_OPT_FLAG_DECODING_PARAM
63 char *media_url, *pagetitle;
69 quvi_setopt(q, QUVIOPT_FORMAT, qc->
format);
75 rc = quvi_getprop(m, QUVIPROP_MEDIAURL, &media_url);
83 qc->
fmtctx->
format_whitelist =
av_strdup(
"avi,asf,flv,mov,mpeg,mpegts,aac,h264,hevc,mp3,ogg,matroska,mxf,mp2");
87 goto err_quvi_cleanup;
90 if (strncmp(media_url,
"http:", 5) && strncmp(media_url,
"https:", 6)) {
93 goto err_quvi_cleanup;
100 rc = quvi_getprop(m, QUVIPROP_PAGETITLE, &pagetitle);
122 quvi_parse_close(&m);
162 .priv_class = &libquvi_context_class,