OSDN Git Service

strdup() the default value for rc_eq in AVCodec when setting it in
authorStefano Sabatini <stefano.sabatini-lala@poste.it>
Sun, 13 Jul 2008 21:44:00 +0000 (21:44 +0000)
committerStefano Sabatini <stefano.sabatini-lala@poste.it>
Sun, 13 Jul 2008 21:44:00 +0000 (21:44 +0000)
commit9606a838241035c6168ccd33f6ca0e4f9c6807b1
tree306c82f0bdc45c0c237316092133cb0221d3ac4a
parentbd6754aa796954aa5b95f11acc1a23e3abcfb948
strdup() the default value for rc_eq in AVCodec when setting it in
avcodec_get_context_defaults(). The value has to be alloced dinamically
rather than statically since it may be freed for example by
av_set_string2(). Fix a segmentation fault.

Originally committed as revision 14221 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/utils.c