Skip to content
Snippets Groups Projects
Commit 3dedbeff authored by Ronald S. Bultje's avatar Ronald S. Bultje
Browse files

Check return value of get_chunk_header(). Since enum can be unsigned, the

current code wouldn't always error out on errors.

Based on patch by Stephen d'Angelo <sdangelo evertz com>.

Originally committed as revision 25260 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 329d689f
No related branches found
No related tags found
No related merge requests found
...@@ -147,9 +147,9 @@ static int get_http_header_data(MMSHContext *mmsh) ...@@ -147,9 +147,9 @@ static int get_http_header_data(MMSHContext *mmsh)
for (;;) { for (;;) {
len = 0; len = 0;
chunk_type = get_chunk_header(mmsh, &len); res = chunk_type = get_chunk_header(mmsh, &len);
if (chunk_type < 0) { if (res < 0) {
return chunk_type; return res;
} else if (chunk_type == CHUNK_TYPE_ASF_HEADER){ } else if (chunk_type == CHUNK_TYPE_ASF_HEADER){
// get asf header and stored it // get asf header and stored it
if (!mms->header_parsed) { if (!mms->header_parsed) {
......
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