After some investigation I came to the conclusion, that av_frame_get_buffer does not allocate the buffers correctly.
1. frame->pix_fmt=AV_PIX_FMT_NV12 frame->width=64 frame->height=64 2. so we need a buffer with 2 planes of same size. First plane holds Y and second plane holds U and V interleaved. 3. the frame linesize is set correctly by av_frame_get_buffer: linesize[0]=64 linesize[1]=64 4. frame->buf must have both planes, however only frame->buf[0] is set and initialized. This causes the segmentation fault, because frame->buf[1] does not exists. Hope somebody can help clarifying why av_frame_get_buffer fails to initialize the buffers correctly... Thanks! Roland _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel