[Ffmpeg-devel] PixelFormat error
Michel Bardiaux
mbardiaux
Tue Jun 21 16:47:56 CEST 2005
Chang Min Jeon wrote:
> I'm trying to encode mpeg1.
>
> int saveTofile()
> {
> AVCodecContext *c = NULL;
>
> ....
>
> ....
>
> ....
>
> c->get_format = PIX_FMT_YUV420P;
> ...
> }
>
> error message :
> error: cannot convert `PixelFormat' to `PixelFormat (*)(AVCodecContext*,
> const PixelFormat*)' in assignment
>
> I can't understand that error message.
It means get_format must be a *function* returning a PixelFormat.
But you better read avcodec.h, which says this field is unused for encoding!
--
Michel Bardiaux
Peaktime Belgium S.A. Bd. du Souverain, 191 B-1160 Bruxelles
Tel : +32 2 790.29.41
More information about the ffmpeg-devel
mailing list