Lines Matching refs:psets
156 char *psets, *p; in extradata2psets() local
177 psets = av_mallocz(MAX_PSET_SIZE); in extradata2psets()
178 if (!psets) { in extradata2psets()
183 memcpy(psets, pset_string, strlen(pset_string)); in extradata2psets()
184 p = psets + strlen(pset_string); in extradata2psets()
197 if (p != (psets + strlen(pset_string))) { in extradata2psets()
205 if (!av_base64_encode(p, MAX_PSET_SIZE - (p - psets), r, r1 - r)) { in extradata2psets()
206 … Base64-encode %"PTRDIFF_SPECIFIER" %"PTRDIFF_SPECIFIER"!\n", MAX_PSET_SIZE - (p - psets), r1 - r); in extradata2psets()
207 av_free(psets); in extradata2psets()
215 if (sps && sps_end - sps >= 4 && p - psets <= MAX_PSET_SIZE - strlen(profile_string) - 7) { in extradata2psets()
223 return psets; in extradata2psets()
228 char *psets; in extradata2psets_hevc() local
287 psets = av_mallocz(MAX_PSET_SIZE); in extradata2psets_hevc()
288 if (!psets) in extradata2psets_hevc()
290 psets[0] = '\0'; in extradata2psets_hevc()
296 av_strlcat(psets, "; ", MAX_PSET_SIZE); in extradata2psets_hevc()
297 av_strlcatf(psets, MAX_PSET_SIZE, "sprop-%s=", ps_names[i]); in extradata2psets_hevc()
308 av_strlcat(psets, ",", MAX_PSET_SIZE); in extradata2psets_hevc()
309 strpos = strlen(psets); in extradata2psets_hevc()
310 if (!av_base64_encode(psets + strpos, MAX_PSET_SIZE - strpos, in extradata2psets_hevc()
312 av_free(psets); in extradata2psets_hevc()
320 return psets; in extradata2psets_hevc()