[FFmpeg-devel] Set AVIOContext->seekable automatically
Michael Niedermayer
michaelni at gmx.at
Tue Jul 23 17:29:49 CEST 2013
On Tue, Jul 23, 2013 at 11:27:28AM +0200, Hendrik Schreiber wrote:
> Hey,
>
> just because I wasted some time on this, when I was working with it.
>
> When creating an AVIOContext (for an in memory source, for example). one uses avio_alloc_context.
> There are cases when one cannot seek (e.g. in a stream). For avio_alloc_context this means that the seek function pointer is NULL.
>
> Wouldn't it make sense to initialize seekable accordingly, i.e. set it to 0 when the function pointer is NULL? Would have saved me a couple of hours.
>
> Patch attached.
>
> Cheers,
>
> -hendrik
>
> aviobuf.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
> 38550046685268bf36461ee4def1fa68a84bfedd set_seekable_automatically.patch
> From c8e7f7c7ec1267d84fa041b89e41d0e014215382 Mon Sep 17 00:00:00 2001
> From: Hendrik Schreiber <hs at tagtraum.com>
> Date: Tue, 23 Jul 2013 11:25:34 +0200
> Subject: [PATCH] set seekable automatically
applied
thanks
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
In a rich man's house there is no place to spit but his face.
-- Diogenes of Sinope
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20130723/7a01a8e4/attachment.asc>
More information about the ffmpeg-devel
mailing list