mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
avformat/rmdec.c: fix left shift of negative value in rm_sync()
Fixes ticket 8143. Reviewed-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
parent
5a9560dfc6
commit
78f52b4fe3
@ -724,8 +724,8 @@ 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<<16;
|
||||
mlti_id = FFMAX(mlti_id, 0);
|
||||
mlti_id = avio_r8((pb) >> 1) - 1;
|
||||
mlti_id = FFMAX(mlti_id, 0) << 16;
|
||||
*flags = avio_r8(pb); /* flags */
|
||||
}
|
||||
for(i=0;i<s->nb_streams;i++) {
|
||||
|
Loading…
Reference in New Issue
Block a user