ffmpeg | branch: master | Marton Balint <[email protected]> | Sun Jan 22 00:59:59 
2023 +0100| [91c29cf9344855bf33bdcd6add2a61a88e468611] | committer: Marton 
Balint

avcodec/rv20enc: use MpegEncContext->picture_number instead of encode function 
parameter

They should be the same and that is what most encode functions use.

Signed-off-by: Marton Balint <[email protected]>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=91c29cf9344855bf33bdcd6add2a61a88e468611
---

 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);
 

_______________________________________________
ffmpeg-cvslog mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".

Reply via email to