Fix a bug in av_find_opt(). Because some of the AVOption structures have field
authorKamil Nowosad <k.nowosad@students.mimuw.edu.pl>
Fri, 30 Mar 2007 09:26:13 +0000 (09:26 +0000)
committerPanagiotis Issaris <takis.issaris@uhasselt.be>
Fri, 30 Mar 2007 09:26:13 +0000 (09:26 +0000)
commita4072c453b23a24afd276f17fe1876df11ab1e0d
tree027e43f0106832c768899c7109cec3a5ca84d065
parent226d6947bc6e6592eabbcb7b401bf164be5bfe6e
Fix a bug in av_find_opt(). Because some of the AVOption structures have field
unit = NULL, the function could pass NULL to strcmp and cause a segfault.

Patch by Kamil Nowosad, k nowosad % students mimuw edu pl.

Original thread:
Subject: [PATCH] small bugfix in av_find_opt()
Date: 03/23/2007 12:20 PM

Originally committed as revision 8553 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/opt.c