[FFmpeg-cvslog] r12241 - trunk/libavformat/mov.c
Baptiste Coudurier
baptiste.coudurier
Wed Feb 27 10:32:43 CET 2008
Michael Niedermayer wrote:
> On Tue, Feb 26, 2008 at 07:21:58PM +0100, bcoudurier wrote:
>> Author: bcoudurier
>> Date: Tue Feb 26 19:21:58 2008
>> New Revision: 12241
>>
>> Log:
>> support mov reference files, ref.mov/ref.m2v/ref.wav and detect BrianCox.mov
> [...]
>> + for (type = 0; type != -1 && url_ftell(pb) < next; ) {
>> + type = get_be16(pb);
>> + len = get_be16(pb);
>> + av_log(c->fc, AV_LOG_DEBUG, "type %d, len %d\n", type, len);
>> + if (len&1)
>> + len += 1;
>> + if (type == 2) { // absolute path
>> + dref->path = av_mallocz(len+1);
>> + get_buffer(pb, dref->path, len);
>> + if (!strncmp(dref->path, volume, volume_len)) {
>> + len -= volume_len;
>> + memmove(dref->path, dref->path+volume_len, len);
>> + dref->path[len] = 0;
>> + }
>> + for (j = 0; j < len; j++)
>> + if (dref->path[j] == ':')
>> + dref->path[j] = '/';
>> + av_log(c->fc, AV_LOG_DEBUG, "path %s\n", dref->path);
>> + } else
>> + url_fskip(pb, len);
>> + }
>
> Also you forgot an av_free() (for the case that there are multiple type=2)
>
Thanks, done.
--
Baptiste COUDURIER GnuPG Key Id: 0x5C1ABAAA
SMARTJOG S.A. http://www.smartjog.com
Key fingerprint 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA
Phone: +33 1 49966312
More information about the ffmpeg-cvslog
mailing list