[FFmpeg-devel] [PATCH] Make libavfilter propagate pkt.pos information through the filterchain

Michael Niedermayer michaelni
Sat Mar 6 22:26:48 CET 2010


On Sat, Mar 06, 2010 at 07:01:06PM +0100, Stefano Sabatini wrote:
> Hi, as in subject.
[...]
> diff --git a/libavfilter/avfilter.h b/libavfilter/avfilter.h
> index 832f421..f181689 100644
> --- a/libavfilter/avfilter.h
> +++ b/libavfilter/avfilter.h
> @@ -105,6 +105,7 @@ typedef struct AVFilterPicRef
>      int h;                      ///< image height
>  
>      int64_t pts;                ///< presentation timestamp in units of 1/AV_TIME_BASE
> +    int64_t pos;                ///< byte position in stream, -1 if unknown
>  
>      AVRational pixel_aspect;    ///< pixel aspect ratio
>  

ok but keep in mind, once avfilter is officially enabled, fields can
only be added at the end and the struct size is not part of the ABI

rest looks ok if tested

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

Many that live deserve death. And some that die deserve life. Can you give
it to them? Then do not be too eager to deal out death in judgement. For
even the very wise cannot see all ends. -- Gandalf
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100306/27eabffc/attachment.pgp>



More information about the ffmpeg-devel mailing list