[FFmpeg-devel] [PATCH] struct member typo fix

Måns Rullgård mans
Sun Jan 11 22:59:30 CET 2009


Diego Biurrun <diego at biurrun.de> writes:

> Here is a patch to fix an "alloced" vs. "allocated" typo.
> Since it is in a public header, I think this needs to be
> dependent on the next version bump.
>
> Diego
>
> Index: libavformat/avformat.h
> ===================================================================
> --- libavformat/avformat.h	(revision 16549)
> +++ libavformat/avformat.h	(working copy)
> @@ -247,10 +247,12 @@
>                                              mpeg2ts_raw is TRUE). */
>      unsigned int initial_pause:1;       /**< Do not begin to play the stream
>                                              immediately (RTSP only). */
> +#if LIBAVFORMAT_VERSION_INT < (53<<16)
>      unsigned int prealloced_context:1;
> -#if LIBAVFORMAT_VERSION_INT < (53<<16)
>      enum CodecID video_codec_id;
>      enum CodecID audio_codec_id;
> +#else
> +    unsigned int preallocated_context:1;
>  #endif
>  } AVFormatParameters;

Isn't the goal to get rid of that struct entirely?

-- 
M?ns Rullg?rd
mans at mansr.com




More information about the ffmpeg-devel mailing list