[FFmpeg-devel] [PATCH] avcodec/rawdec: remove redundant code setting frame properties
James Almer
jamrial at gmail.com
Tue Dec 6 16:58:56 EET 2022
These same values were already set in the ff_decode_frame_props() call above.
Signed-off-by: James Almer <jamrial at gmail.com>
---
libavcodec/rawdec.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/libavcodec/rawdec.c b/libavcodec/rawdec.c
index 72cdd13916..c20c317fed 100644
--- a/libavcodec/rawdec.c
+++ b/libavcodec/rawdec.c
@@ -233,9 +233,6 @@ static int raw_decode(AVCodecContext *avctx, AVFrame *frame,
if (res < 0)
return res;
- frame->pkt_pos = avctx->internal->last_pkt_props->pos;
- frame->duration = avctx->internal->last_pkt_props->duration;
-
if (context->tff >= 0) {
frame->interlaced_frame = 1;
frame->top_field_first = context->tff;
--
2.38.1
More information about the ffmpeg-devel
mailing list