bugfix; coredump if no codec name was specified in url.

pull/533/merge
Isaac Connor 2014-10-15 14:35:01 -04:00
parent 638ef29e28
commit 8a33f78243
1 changed files with 1 additions and 0 deletions

View File

@ -433,6 +433,7 @@ VideoStream::VideoStream( const char *in_filename, const char *in_format, int bi
codec_and_format = new char[length+1];;
strcpy( codec_and_format, format );
format = codec_and_format;
codec_name = NULL;
char *f = strchr(codec_and_format, '/');
if (f != NULL)
{