2017-02-15 7:58 GMT+01:00 Prakash Rokade <[email protected]>: > codecContext->sample_fmt = codec->sample_fmts[0];
> int ret = Ffmpeg::avcodec_open2(codecContext, codec, NULL); I believe you cannot generally do this: A codec does not necessarily support the sample_fmt you set. Additionally, the actual supported list of sample_fmts for a codec is not part of the API, it has changed in the past without any particular warning (like a version bump). Carl Eugen _______________________________________________ Libav-user mailing list [email protected] http://ffmpeg.org/mailman/listinfo/libav-user
