Browse Source

Merge commit '016cac75c6061a1c03f812ddf258b8baefe70b00'

* commit '016cac75c6061a1c03f812ddf258b8baefe70b00':
  asfdec: prevent the infinite loop in detect unknown_subobject

Merged-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.8
Michael Niedermayer 10 years ago
parent
commit
30ffbeb04a
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      libavformat/asfdec_o.c

+ 2
- 0
libavformat/asfdec_o.c View File

@@ -1591,6 +1591,8 @@ static int detect_unknown_subobject(AVFormatContext *s, int64_t offset, int64_t
int ret; int ret;


while (avio_tell(pb) <= offset + size) { while (avio_tell(pb) <= offset + size) {
if (avio_tell(pb) == asf->offset)
break;
asf->offset = avio_tell(pb); asf->offset = avio_tell(pb);
if ((ret = ff_get_guid(pb, &guid)) < 0) if ((ret = ff_get_guid(pb, &guid)) < 0)
return ret; return ret;


Loading…
Cancel
Save