Skip to content
Snippets Groups Projects
Commit 9807d397 authored by Michael Niedermayer's avatar Michael Niedermayer
Browse files

avformat/pva: Check for EOF before retrying in read_part_of_packet()


Fixes: Infinite loop
Fixes: pva-4b1835dbc2027bf3c567005dcc78e85199240d06

Found-by: default avatarPaul Ch <paulcher@icloud.com>
Signed-off-by: default avatarMichael Niedermayer <michael@niedermayer.cc>
parent a7e032a2
No related branches found
No related tags found
No related merge requests found
......@@ -134,6 +134,10 @@ recover:
pes_flags = avio_rb16(pb);
pes_header_data_length = avio_r8(pb);
if (avio_feof(pb)) {
return AVERROR_EOF;
}
if (pes_signal != 1 || pes_header_data_length == 0) {
pva_log(s, AV_LOG_WARNING, "expected non empty signaled PES packet, "
"trying to recover\n");
......
  • Auri @aurieh

    mentioned in commit 6f4b82cc

    ·

    mentioned in commit 6f4b82cc

    Toggle commit list
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment