|
|
@@ -60,7 +60,8 @@ static const enum AVPixelFormat *get_compliance_unofficial_pix_fmts(enum AVCodec |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
enum AVPixelFormat choose_pixel_fmt(AVStream *st, AVCodecContext *enc_ctx, AVCodec *codec, enum AVPixelFormat target) |
|
|
|
enum AVPixelFormat choose_pixel_fmt(AVStream *st, AVCodecContext *enc_ctx, |
|
|
|
const AVCodec *codec, enum AVPixelFormat target) |
|
|
|
{ |
|
|
|
if (codec && codec->pix_fmts) { |
|
|
|
const enum AVPixelFormat *p = codec->pix_fmts; |
|
|
@@ -90,7 +91,7 @@ enum AVPixelFormat choose_pixel_fmt(AVStream *st, AVCodecContext *enc_ctx, AVCod |
|
|
|
return target; |
|
|
|
} |
|
|
|
|
|
|
|
void choose_sample_fmt(AVStream *st, AVCodec *codec) |
|
|
|
void choose_sample_fmt(AVStream *st, const AVCodec *codec) |
|
|
|
{ |
|
|
|
if (codec && codec->sample_fmts) { |
|
|
|
const enum AVSampleFormat *p = codec->sample_fmts; |
|
|
|