Lines Matching defs:dst
385 int av_packet_copy_props(AVPacket *dst, const AVPacket *src)
389 dst->pts = src->pts;
390 dst->dts = src->dts;
391 dst->pos = src->pos;
392 dst->duration = src->duration;
393 dst->flags = src->flags;
394 dst->stream_index = src->stream_index;
395 dst->opaque = src->opaque;
396 dst->time_base = src->time_base;
397 dst->opaque_ref = NULL;
398 dst->side_data = NULL;
399 dst->side_data_elems = 0;
401 ret = av_buffer_replace(&dst->opaque_ref, src->opaque_ref);
409 uint8_t *dst_data = av_packet_new_side_data(dst, type, size);
412 av_buffer_unref(&dst->opaque_ref);
413 av_packet_free_side_data(dst);
430 int av_packet_ref(AVPacket *dst, const AVPacket *src)
434 dst->buf = NULL;
436 ret = av_packet_copy_props(dst, src);
441 ret = packet_alloc(&dst->buf, src->size);
446 memcpy(dst->buf->data, src->data, src->size);
448 dst->data = dst->buf->data;
450 dst->buf = av_buffer_ref(src->buf);
451 if (!dst->buf) {
455 dst->data = src->data;
458 dst->size = src->size;
462 av_packet_unref(dst);
479 void av_packet_move_ref(AVPacket *dst, AVPacket *src)
481 *dst = *src;
538 int (*copy)(AVPacket *dst, const AVPacket *src),