Re: [FFmpeg-devel] How to set avcodec_open2 to set ((MpegEncContext *)(avctx->priv_data))->fixed_qscale = 1?

2017-02-05 Thread Michael Niedermayer
On Sun, Feb 05, 2017 at 05:29:33PM +0800, sea wrote: > Hi , > > > I'm trying to push a stream to a server with ffmpeg. I debugged the ffmpeg > code, and found that when avcode_open2 returned, the ((MpegEncContext > *)(avctx->priv_data))->fixed_qscale = 1. That to say, when video stream was

[FFmpeg-devel] How to set avcodec_open2 to set ((MpegEncContext *)(avctx->priv_data))->fixed_qscale = 1?

2017-02-05 Thread sea
Hi , I'm trying to push a stream to a server with ffmpeg. I debugged the ffmpeg code, and found that when avcode_open2 returned, the ((MpegEncContext *)(avctx->priv_data))->fixed_qscale = 1. That to say, when video stream was handled, certain offset of avctx->priv_data pointer (just