| 182 | } |
| 183 | |
| 184 | static AVFrameSideData *replace_side_data_from_buf(AVFrameSideData *dst, |
| 185 | AVBufferRef *buf, int flags) |
| 186 | { |
| 187 | if (!(flags & AV_FRAME_SIDE_DATA_FLAG_REPLACE)) |
| 188 | return NULL; |
| 189 | |
| 190 | av_dict_free(&dst->metadata); |
| 191 | av_buffer_unref(&dst->buf); |
| 192 | dst->buf = buf; |
| 193 | dst->data = buf->data; |
| 194 | dst->size = buf->size; |
| 195 | return dst; |
| 196 | } |
| 197 | |
| 198 | AVFrameSideData *av_frame_side_data_new(AVFrameSideData ***sd, int *nb_sd, |
| 199 | enum AVFrameSideDataType type, |
no test coverage detected