[Ffmpeg-cvslog] r6108 - in trunk: ffmpeg.c libavformat/avformat.h libavformat/utils.c

Måns Rullgård mru
Mon Aug 28 17:16:21 CEST 2006


nicodvb said:
> Modified: trunk/libavformat/avformat.h
> ==============================================================================
> --- trunk/libavformat/avformat.h	(original)
> +++ trunk/libavformat/avformat.h	Sun Aug 27 14:14:13 2006
> @@ -112,6 +112,7 @@
>                                    mpeg2ts_raw is TRUE */
>      int initial_pause:1;       /* do not begin to play the stream
>                                    immediately (RTSP only) */
> +    int prealloced_context:1;

Why are these bitfields?

> -    ic = av_alloc_format_context();
> +    if(!ap->prealloced_context)
> +        ic = av_alloc_format_context();
> +    else
> +        ic = *ic_ptr;

Why not like this?

if(*ic_ptr)
    ic = *ic_ptr;
else
    ic = av_alloc_format_context();

-- 
M?ns Rullg?rd
mru at inprovide.com




More information about the ffmpeg-cvslog mailing list