comparison libmpdemux/asfheader.c @ 23803:ec1a81c77628

fixed bug introduced with the addition of get_ext_stream_properties() that should close bug #843, too. Patch by John Donaghy. Explanation: The issue is that get_ext_stream_properties shouldnt be returning false when no extended stream properties are found for the stream in question because that is not an error condition ... extended stream properties are optional. The only time this function should return false is when the buffer overrun checks fail.
author nicodvb
date Wed, 18 Jul 2007 22:16:08 +0000
parents 304beddf4700
children 5fd33d4d5c3e
comparison
equal deleted inserted replaced
23802:7111f3133866 23803:ec1a81c77628
286 } 286 }
287 287
288 return 1; 288 return 1;
289 } 289 }
290 } 290 }
291 return 0; 291 return 1;
292 } 292 }
293 293
294 #define CHECKDEC(l, n) if (((l) -= (n)) < 0) return 0 294 #define CHECKDEC(l, n) if (((l) -= (n)) < 0) return 0
295 static char* read_meta_record(ASF_meta_record_t* dest, char* buf, 295 static char* read_meta_record(ASF_meta_record_t* dest, char* buf,
296 int* buf_len) 296 int* buf_len)