[Ffmpeg-devel] [PATCH] set MPEG 1/2 gop timecode frame start number
Michael Niedermayer
michaelni
Mon Nov 6 20:26:34 CET 2006
Hi
On Mon, Nov 06, 2006 at 07:59:25PM +0100, Baptiste Coudurier wrote:
> Hi
>
> This patch add support to set MPEG 1/2 gop header timecode start. Also
> supports drop frame flag.
hmm, and what is that good for?
[...]
> Index: libavcodec/mpeg12.c
> ===================================================================
> --- libavcodec/mpeg12.c (revision 6918)
> +++ libavcodec/mpeg12.c (working copy)
> @@ -346,13 +346,20 @@
> }
>
> put_header(s, GOP_START_CODE);
> - put_bits(&s->pb, 1, 0); /* do drop frame */
> + put_bits(&s->pb, 1, s->avctx->flags & CODEC_FLAG2_DROP_FRAME_TIMECODE); /* drop frame flag */
flags & CODEC_FLAG2_DROP_FRAME_TIMECODE uhm
try !!(flags2 & ...)
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
In the past you could go to a library and read, borrow or copy any book
Today you'd get arrested for mere telling someone where the library is
More information about the ffmpeg-devel
mailing list