mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2026-01-06 06:05:32 +01:00
Merge commit '7c6eb0a1b7bf1aac7f033a7ec6d8cacc3b5c2615'
* commit '7c6eb0a1b7bf1aac7f033a7ec6d8cacc3b5c2615': lavc: AV-prefix all codec flags Conflicts: doc/examples/muxing.c ffmpeg.c ffmpeg_opt.c ffplay.c libavcodec/aacdec.c libavcodec/aacenc.c libavcodec/ac3dec.c libavcodec/ac3enc_float.c libavcodec/atrac1.c libavcodec/atrac3.c libavcodec/atrac3plusdec.c libavcodec/dcadec.c libavcodec/ffv1enc.c libavcodec/h264.c libavcodec/h264_loopfilter.c libavcodec/h264_mb.c libavcodec/imc.c libavcodec/libmp3lame.c libavcodec/libtheoraenc.c libavcodec/libtwolame.c libavcodec/libvpxenc.c libavcodec/libxavs.c libavcodec/libxvid.c libavcodec/mpeg12dec.c libavcodec/mpeg12enc.c libavcodec/mpegaudiodec_template.c libavcodec/mpegvideo.c libavcodec/mpegvideo_enc.c libavcodec/mpegvideo_motion.c libavcodec/nellymoserdec.c libavcodec/nellymoserenc.c libavcodec/nvenc.c libavcodec/on2avc.c libavcodec/options_table.h libavcodec/opus_celt.c libavcodec/pngenc.c libavcodec/ra288.c libavcodec/ratecontrol.c libavcodec/twinvq.c libavcodec/vc1_block.c libavcodec/vc1_loopfilter.c libavcodec/vc1_mc.c libavcodec/vc1dec.c libavcodec/vorbisdec.c libavcodec/vp3.c libavcodec/wma.c libavcodec/wmaprodec.c libavcodec/x86/hpeldsp_init.c libavcodec/x86/me_cmp_init.c Merged-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
@@ -312,7 +312,7 @@ static av_always_inline int encode_line(FFV1Context *s, int w,
|
||||
diff = fold(diff, bits);
|
||||
|
||||
if (s->ac) {
|
||||
if (s->flags & CODEC_FLAG_PASS1) {
|
||||
if (s->flags & AV_CODEC_FLAG_PASS1) {
|
||||
put_symbol_inline(c, p->state[context], diff, 1, s->rc_stat,
|
||||
s->rc_stat2[p->quant_table_index][context]);
|
||||
} else {
|
||||
@@ -672,7 +672,8 @@ static av_cold int encode_init(AVCodecContext *avctx)
|
||||
|
||||
s->version = 0;
|
||||
|
||||
if ((avctx->flags & (CODEC_FLAG_PASS1|CODEC_FLAG_PASS2)) || avctx->slices>1)
|
||||
if ((avctx->flags & (AV_CODEC_FLAG_PASS1 | AV_CODEC_FLAG_PASS2)) ||
|
||||
avctx->slices > 1)
|
||||
s->version = FFMAX(s->version, 2);
|
||||
|
||||
// Unspecified level & slices, we choose version 1.2+ to ensure multithreaded decodability
|
||||
@@ -867,7 +868,7 @@ FF_ENABLE_DEPRECATION_WARNINGS
|
||||
avcodec_get_chroma_sub_sample(avctx->pix_fmt, &s->chroma_h_shift, &s->chroma_v_shift);
|
||||
s->picture_number = 0;
|
||||
|
||||
if (avctx->flags & (CODEC_FLAG_PASS1 | CODEC_FLAG_PASS2)) {
|
||||
if (avctx->flags & (AV_CODEC_FLAG_PASS1 | AV_CODEC_FLAG_PASS2)) {
|
||||
for (i = 0; i < s->quant_table_count; i++) {
|
||||
s->rc_stat2[i] = av_mallocz(s->context_count[i] *
|
||||
sizeof(*s->rc_stat2[i]));
|
||||
@@ -980,7 +981,7 @@ slices_ok:
|
||||
return ret;
|
||||
|
||||
#define STATS_OUT_SIZE 1024 * 1024 * 6
|
||||
if (avctx->flags & CODEC_FLAG_PASS1) {
|
||||
if (avctx->flags & AV_CODEC_FLAG_PASS1) {
|
||||
avctx->stats_out = av_mallocz(STATS_OUT_SIZE);
|
||||
if (!avctx->stats_out)
|
||||
return AVERROR(ENOMEM);
|
||||
@@ -1200,7 +1201,7 @@ static int encode_frame(AVCodecContext *avctx, AVPacket *pkt,
|
||||
+ avctx->width*avctx->height*35LL*4;
|
||||
|
||||
if(!pict) {
|
||||
if (avctx->flags & CODEC_FLAG_PASS1) {
|
||||
if (avctx->flags & AV_CODEC_FLAG_PASS1) {
|
||||
int j, k, m;
|
||||
char *p = avctx->stats_out;
|
||||
char *end = p + STATS_OUT_SIZE;
|
||||
@@ -1315,7 +1316,7 @@ static int encode_frame(AVCodecContext *avctx, AVPacket *pkt,
|
||||
buf_p += bytes;
|
||||
}
|
||||
|
||||
if (avctx->flags & CODEC_FLAG_PASS1)
|
||||
if (avctx->flags & AV_CODEC_FLAG_PASS1)
|
||||
avctx->stats_out[0] = '\0';
|
||||
|
||||
#if FF_API_CODED_FRAME
|
||||
|
||||
Reference in New Issue
Block a user