Signed-off-by: Andreas Rheinhardt <[email protected]>
---
libavcodec/flashsvenc.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libavcodec/flashsvenc.c b/libavcodec/flashsvenc.c
index 3c3d9c8813..89119733df 100644
--- a/libavcodec/flashsvenc.c
+++ b/libavcodec/flashsvenc.c
@@ -195,7 +195,6 @@ static int flashsv_encode_frame(AVCodecContext *avctx,
AVPacket *pkt,
const AVFrame *pict, int *got_packet)
{
FlashSVContext * const s = avctx->priv_data;
- const AVFrame * const p = pict;
int res;
int I_frame = 0;
int opt_w = 4, opt_h = 4;
@@ -219,7 +218,8 @@ static int flashsv_encode_frame(AVCodecContext *avctx,
AVPacket *pkt,
if (res < 0)
return res;
- pkt->size = encode_bitstream(s, p, pkt->data, pkt->size, opt_w * 16, opt_h
* 16,
+ pkt->size = encode_bitstream(s, pict, pkt->data, pkt->size,
+ opt_w * 16, opt_h * 16,
s->previous_frame, &I_frame);
//mark the frame type so the muxer can mux it correctly
--
2.34.1
_______________________________________________
ffmpeg-devel mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".