MCPcopy Create free account
hub / github.com/FFmpeg/FFmpeg / update_metadata

Function update_metadata

libavformat/http.c:1917–1943  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1915}
1916
1917static void update_metadata(URLContext *h, char *data)
1918{
1919 char *key;
1920 char *val;
1921 char *end;
1922 char *next = data;
1923 HTTPContext *s = h->priv_data;
1924
1925 while (*next) {
1926 key = next;
1927 val = strstr(key, "='");
1928 if (!val)
1929 break;
1930 end = strstr(val, "';");
1931 if (!end)
1932 break;
1933
1934 *val = '\0';
1935 *end = '\0';
1936 val += 2;
1937
1938 av_dict_set(&s->metadata, key, val, 0);
1939 av_log(h, AV_LOG_VERBOSE, "Metadata update for %s: %s\n", key, val);
1940
1941 next = end + 2;
1942 }
1943}
1944
1945static int store_icy(URLContext *h, int size)
1946{

Callers 1

store_icyFunction · 0.85

Calls 2

av_dict_setFunction · 0.85
av_logFunction · 0.85

Tested by

no test coverage detected