[Libav-user] IntPtr to Packet data is not woking
Carl Eugen Hoyos
ceffmpeg at gmail.com
Wed Feb 15 12:55:41 EET 2017
2017-02-15 7:58 GMT+01:00 Prakash Rokade <prakash.rokade420 at gmail.com>:
> 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
More information about the Libav-user
mailing list