From b41aab36905be6f822f0e102b291d8630474bc42 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Wed, 6 Oct 2010 18:15:03 +0200 Subject: [PATCH] ffdec: add some comments --- ext/ffmpeg/gstffmpegdec.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ext/ffmpeg/gstffmpegdec.c b/ext/ffmpeg/gstffmpegdec.c index e802ee54bb..d2649a5c7e 100644 --- a/ext/ffmpeg/gstffmpegdec.c +++ b/ext/ffmpeg/gstffmpegdec.c @@ -44,6 +44,10 @@ typedef struct _GstFFMpegDec GstFFMpegDec; #define MAX_TS_MASK 0xff +/* for each incomming buffer we keep all timing info in a structure like this. + * We keep a circular array of these structures around to store the timing info. + * The index in the array is what we pass as opaque data (to pictures) and + * pts (to parsers) so that ffmpeg can remember them for us. */ typedef struct { gint idx;