Lines Matching defs:dref

645         MOVDref *dref = &sc->drefs[i];
646 av_freep(&dref->path);
647 av_freep(&dref->dir);
657 MOVDref *dref = &sc->drefs[i];
666 dref->type = avio_rl32(pb);
669 if (dref->type == MKTAG('a','l','i','s') && size > 150) {
679 ret = ffio_read_size(pb, dref->volume, 27);
682 dref->volume[volume_len] = 0;
683 av_log(c->fc, AV_LOG_DEBUG, "volume %s, len %d\n", dref->volume, volume_len);
689 ret = ffio_read_size(pb, dref->filename, 63);
692 dref->filename[len] = 0;
693 av_log(c->fc, AV_LOG_DEBUG, "filename %s, len %d\n", dref->filename, len);
698 dref->nlvl_from = avio_rb16(pb);
699 dref->nlvl_to = avio_rb16(pb);
701 dref->nlvl_from, dref->nlvl_to);
714 av_free(dref->path);
715 dref->path = av_mallocz(len+1);
716 if (!dref->path)
719 ret = ffio_read_size(pb, dref->path, len);
721 av_freep(&dref->path);
724 if (len > volume_len && !strncmp(dref->path, dref->volume, volume_len)) {
726 memmove(dref->path, dref->path+volume_len, len);
727 dref->path[len] = 0;
731 if (dref->path[j] == 0)
737 if (dref->path[j] == ':' || dref->path[j] == 0)
738 dref->path[j] = '/';
739 av_log(c->fc, AV_LOG_DEBUG, "path %s\n", dref->path);
741 av_free(dref->dir);
742 dref->dir = av_malloc(len+1);
743 if (!dref->dir)
746 ret = ffio_read_size(pb, dref->dir, len);
748 av_freep(&dref->dir);
751 dref->dir[len] = 0;
753 if (dref->dir[j] == ':')
754 dref->dir[j] = '/';
755 av_log(c->fc, AV_LOG_DEBUG, "dir %s\n", dref->dir);
760 av_log(c->fc, AV_LOG_DEBUG, "Unknown dref type 0x%08"PRIx32" size %"PRIu32"\n",
761 dref->type, size);
4670 MOVDref *dref = &sc->drefs[sc->dref_id - 1];
4672 if (mov_open_dref(c, &sc->pb, c->fc->url, dref) < 0)
4676 st->index, dref->path, dref->dir, dref->filename,
4677 dref->volume, dref->nlvl_from, dref->nlvl_to);
4684 st->index, dref->path, dref->dir, dref->filename,
4685 dref->volume, dref->nlvl_from, dref->nlvl_to);