]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/rawdec.c
lavc: deprecate unused AVCodecContext.stream_codec_tag
[ffmpeg] / libavcodec / rawdec.c
index 24d06f3087f95758a86c9d6ecbc65e5e4449b018..3b69e49e8451c1d1613f21e72008afac5be2ca31 100644 (file)
@@ -25,6 +25,7 @@
  */
 
 #include "avcodec.h"
+#include "internal.h"
 #include "raw.h"
 #include "libavutil/buffer.h"
 #include "libavutil/common.h"
@@ -149,8 +150,10 @@ static int raw_decode(AVCodecContext *avctx, void *data, int *got_frame,
 
     frame->pict_type        = AV_PICTURE_TYPE_I;
     frame->key_frame        = 1;
-    frame->reordered_opaque = avctx->reordered_opaque;
-    frame->pkt_pts          = avctx->pkt->pts;
+
+    res = ff_decode_frame_props(avctx, frame);
+    if (res < 0)
+        return res;
 
     if (buf_size < context->frame_size - (avctx->pix_fmt == AV_PIX_FMT_PAL8 ?
                                           AVPALETTE_SIZE : 0))