Skip to content

Commit

Permalink
Fixed #2580
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanlf committed Sep 1, 2023
1 parent de7f3a8 commit 3ec93d7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/media_tools/mpeg2_ps.c
Expand Up @@ -266,6 +266,8 @@ int MPEG12_ParseSeqHdr(unsigned char *pbuffer, u32 buflen, s32 *have_mpeg2, u32
u32 scode, ix;
s32 found = -1;
*have_mpeg2 = 0;
if (buflen<6) return found;

buflen -= 6;
bitrate_int = 0;
for (ix = 0; ix < buflen; ix++, pbuffer++) {
Expand Down

0 comments on commit 3ec93d7

Please sign in to comment.