Browse Source

lavc/utils: remove redundant call to ff_init_buffer_info

It does the same as calling ff_decode_frame_props.

Signed-off-by: Marton Balint <cus@passwd.hu>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.8
Marton Balint Michael Niedermayer 10 years ago
parent
commit
3a19fe0048
1 changed files with 0 additions and 2 deletions
  1. +0
    -2
      libavcodec/utils.c

+ 0
- 2
libavcodec/utils.c View File

@@ -892,8 +892,6 @@ static int get_buffer_internal(AVCodecContext *avctx, AVFrame *frame, int flags)
ret = ff_decode_frame_props(avctx, frame); ret = ff_decode_frame_props(avctx, frame);
if (ret < 0) if (ret < 0)
return ret; return ret;
if ((ret = ff_init_buffer_info(avctx, frame)) < 0)
return ret;


if (hwaccel) { if (hwaccel) {
if (hwaccel->alloc_frame) { if (hwaccel->alloc_frame) {


Loading…
Cancel
Save