[Ffmpeg-devel] Re: [PATCH] PKT_FLAG_B

Michael Niedermayer michaelni
Wed Aug 9 11:34:59 CEST 2006


Hi

On Wed, Aug 09, 2006 at 01:05:54AM +0200, Baptiste Coudurier wrote:
[...]
> --- libavformat/gxfenc.c	(revision 5961)
> +++ libavformat/gxfenc.c	(working copy)
> @@ -20,6 +20,7 @@
>  #include "avformat.h"
>  #include "gxf.h"
>  #include "riff.h"
> +#include "mpegvideo.h"

i would prefer if muxers wouldnt depend on internal headers of libavcodec

and please use the following to extract the frame type and closed_gop flags
its much simpler

uint32_t c=-1;
for(i=0; i<size+4 && c!=0x100; i++){
    c = (c<<8) + buf[i];
    if(c == 0x1B8)
        closed_gop= (buf[i+4]>>6)&1;
}
frame_type= (buf[i+2]>>3)&7;

[...]
-- 
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