Browse Source

avcodec/libutvideodec: use av_frame_move_ref()

AVFrames cannot be copied literally, their definition is in
avutil and their extended_data can point to their data[]

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.2-rc1
Michael Niedermayer 12 years ago
parent
commit
4c1b4ae1ba
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/libutvideodec.cpp

+ 1
- 1
libavcodec/libutvideodec.cpp View File

@@ -164,7 +164,7 @@ static int utvideo_decode_frame(AVCodecContext *avctx, void *data,
} }


*got_frame = 1; *got_frame = 1;
*(AVFrame *)data = *pic;
av_frame_move_ref((AVFrame*)data, pic);


return avpkt->size; return avpkt->size;
} }


Loading…
Cancel
Save