[FFmpeg-devel] avcodec/rawdec: Remove redundant code

Submitted by Michael Niedermayer on Aug. 14, 2019, 11:08 p.m.

Details

Message ID 20190814230831.27272-1-michael@niedermayer.cc
State New
Headers show

Commit Message

Michael Niedermayer Aug. 14, 2019, 11:08 p.m.
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
---
 libavcodec/rawdec.c | 3 ---
 1 file changed, 3 deletions(-)

Patch hide | download patch | download mbox

diff --git a/libavcodec/rawdec.c b/libavcodec/rawdec.c
index 53f5b76e93..35d7653174 100644
--- a/libavcodec/rawdec.c
+++ b/libavcodec/rawdec.c
@@ -239,9 +239,6 @@  static int raw_decode(AVCodecContext *avctx, void *data, int *got_frame,
     if (res < 0)
         return res;
 
-    frame->pkt_pos      = avctx->internal->last_pkt_props->pos;
-    frame->pkt_duration = avctx->internal->last_pkt_props->duration;
-
     if (context->tff >= 0) {
         frame->interlaced_frame = 1;
         frame->top_field_first  = context->tff;