[FFmpeg-devel] [PATCH 2/5] avcodec/rv20enc: use MpegEncContext->picture_number instead of encode function parameter
Marton Balint
cus at passwd.hu
Tue Jan 24 02:13:19 EET 2023
They should be the same and that is what most encode functions use.
Signed-off-by: Marton Balint <cus at passwd.hu>
---
libavcodec/rv20enc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/rv20enc.c b/libavcodec/rv20enc.c
index a6bacacb48..00f6c41e77 100644
--- a/libavcodec/rv20enc.c
+++ b/libavcodec/rv20enc.c
@@ -39,7 +39,7 @@ void ff_rv20_encode_picture_header(MpegEncContext *s, int picture_number){
put_bits(&s->pb, 1, 0); /* unknown bit */
put_bits(&s->pb, 5, s->qscale);
- put_sbits(&s->pb, 8, picture_number); //FIXME wrong, but correct is not known
+ put_sbits(&s->pb, 8, s->picture_number); //FIXME wrong, but correct is not known
s->mb_x= s->mb_y= 0;
ff_h263_encode_mba(s);
--
2.35.3
More information about the ffmpeg-devel
mailing list