Browse Source

Merge commit '2f325a6fd4421c4dd4e26d7065e5d4bf26ed52f2'

* commit '2f325a6fd4421c4dd4e26d7065e5d4bf26ed52f2':
  libx264: change i_qfactor to use x264cli's default
  qtrle: use AV_LOG_ERROR in an error message.

Conflicts:
	libavcodec/libx264.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
tags/n1.2
Michael Niedermayer 12 years ago
parent
commit
a77a27a24b
2 changed files with 5 additions and 2 deletions
  1. +4
    -1
      libavcodec/libx264.c
  2. +1
    -1
      libavcodec/qtrle.c

+ 4
- 1
libavcodec/libx264.c View File

@@ -286,7 +286,6 @@ static av_cold int X264_init(AVCodecContext *avctx)

x4->params.b_deblocking_filter = avctx->flags & CODEC_FLAG_LOOP_FILTER;

x4->params.rc.f_ip_factor = 1 / fabs(avctx->i_quant_factor);
x4->params.rc.f_pb_factor = avctx->b_quant_factor;
x4->params.analyse.i_chroma_qp_offset = avctx->chromaoffset;
if (x4->preset || x4->tune)
@@ -357,6 +356,9 @@ static av_cold int X264_init(AVCodecContext *avctx)
}
}

if (avctx->i_quant_factor > 0)
x4->params.rc.f_ip_factor = 1 / fabs(avctx->i_quant_factor);

if (avctx->me_method == ME_EPZS)
x4->params.analyse.i_me_method = X264_ME_DIA;
else if (avctx->me_method == ME_HEX)
@@ -693,6 +695,7 @@ static const AVCodecDefault x264_defaults[] = {
{ "bf", "-1" },
{ "flags2", "0" },
{ "g", "-1" },
{ "i_qfactor", "-1" },
{ "qmin", "-1" },
{ "qmax", "-1" },
{ "qdiff", "-1" },


+ 1
- 1
libavcodec/qtrle.c View File

@@ -48,7 +48,7 @@ typedef struct QtrleContext {

#define CHECK_PIXEL_PTR(n) \
if ((pixel_ptr + n > pixel_limit) || (pixel_ptr + n < 0)) { \
av_log (s->avctx, AV_LOG_INFO, "Problem: pixel_ptr = %d, pixel_limit = %d\n", \
av_log (s->avctx, AV_LOG_ERROR, "Problem: pixel_ptr = %d, pixel_limit = %d\n",\
pixel_ptr + n, pixel_limit); \
return; \
} \


Loading…
Cancel
Save