[Ffmpeg-devel] [PATCH] TTA Seeking

Michael Niedermayer michaelni
Sat Apr 14 13:53:47 CEST 2007


Hi

On Fri, Apr 13, 2007 at 10:33:27PM -0400, David Conrad wrote:
> Hi,
> 
> The following patch adds support for seeking in TTA files.

[...]

> +        av_add_index_entry(st, framepos, i*framelen, size, 0,  
> AVINDEX_KEYFRAME);

it looks like your patch has been mangled


> +        framepos += size;
> +    }
>      url_fskip(&s->pb, 4); // seektable crc
> -    st = av_new_stream(s, 0);
> -//    av_set_pts_info(st, 32, 1, 1000);

>      if (!st)
>          return AVERROR_NOMEM;

this check should be moved up it has no sense here, things will segfault
if its true ...


[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Concerning the gods, I have no means of knowing whether they exist or not
or of what sort they may be, because of the obscurity of the subject, and
the brevity of human life -- Protagoras
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20070414/3ebfa460/attachment.pgp>



More information about the ffmpeg-devel mailing list