[FFmpeg-cvslog] avformat/rmdec.c: fix brackets around arguments

James Almer git at videolan.org
Sun Sep 15 17:05:43 EEST 2019


ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Sun Sep 15 11:04:33 2019 -0300| [4c34ed65f68542ab5d1b0be0e26716ae74df0d23] | committer: James Almer

avformat/rmdec.c: fix brackets around arguments

Regression since 78f52b4fe3

Signed-off-by: James Almer <jamrial at gmail.com>

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

 libavformat/rmdec.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/rmdec.c b/libavformat/rmdec.c
index e95cc9f858..e612c42e57 100644
--- a/libavformat/rmdec.c
+++ b/libavformat/rmdec.c
@@ -724,7 +724,7 @@ static int rm_sync(AVFormatContext *s, int64_t *timestamp, int *flags, int *stre
 
             num = avio_rb16(pb);
             *timestamp = avio_rb32(pb);
-            mlti_id = avio_r8((pb) >> 1) - 1;
+            mlti_id = (avio_r8(pb) >> 1) - 1;
             mlti_id = FFMAX(mlti_id, 0) << 16;
             *flags = avio_r8(pb); /* flags */
         }



More information about the ffmpeg-cvslog mailing list