Commit f21e9e7d authored by conrad's avatar conrad

handle negative serialno in oggz_get_stream(). Reported by Erik de Castro Lopo,

patch modified to continue to handle special -1 serialno value.


git-svn-id: http://svn.annodex.net/liboggz/trunk@3171 8158c8cd-e7e1-0310-9fa4-c5954c97daef
parent 32ef1286
......@@ -301,7 +301,7 @@ oggz_find_stream (void * data, long serialno)
oggz_stream_t *
oggz_get_stream (OGGZ * oggz, long serialno)
{
if (serialno < 0) return NULL;
if (serialno == -1) return NULL;
return oggz_vector_find_with (oggz->streams, oggz_find_stream, serialno);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment