View | Details | Raw Unified | Return to bug 255687
Collapse All | Expand All

(-)third_party/webrtc/modules/video_coding/codecs/h264/h264_decoder_impl.cc (-1 / +4 lines)
Lines 77-83 Link Here
77
  int height = av_frame->height;
77
  int height = av_frame->height;
78
  // See |lowres|, if used the decoder scales the image by 1/2^(lowres). This
78
  // See |lowres|, if used the decoder scales the image by 1/2^(lowres). This
79
  // has implications on which resolutions are valid, but we don't use it.
79
  // has implications on which resolutions are valid, but we don't use it.
80
  RTC_CHECK_EQ(context->lowres, 0);
80
  // RTC_CHECK_EQ(context->lowres, 0);
81
  // Adjust the |width| and |height| to values acceptable by the decoder.
81
  // Adjust the |width| and |height| to values acceptable by the decoder.
82
  // Without this, FFmpeg may overflow the buffer. If modified, |width| and/or
82
  // Without this, FFmpeg may overflow the buffer. If modified, |width| and/or
83
  // |height| are larger than the actual image and the image has to be cropped
83
  // |height| are larger than the actual image and the image has to be cropped
Lines 201-206 Link Here
201
  // |get_buffer2| is called with the context, there |opaque| can be used to get
201
  // |get_buffer2| is called with the context, there |opaque| can be used to get
202
  // a pointer |this|.
202
  // a pointer |this|.
203
  av_context_->opaque = this;
203
  av_context_->opaque = this;
204
205
  // Initializing |lowres|
206
  av_context_->lowres = 0;
204
207
205
  AVCodec* codec = avcodec_find_decoder(av_context_->codec_id);
208
  AVCodec* codec = avcodec_find_decoder(av_context_->codec_id);
206
  if (!codec) {
209
  if (!codec) {

Return to bug 255687