sdp: Check theora colorspace before producing the configuration string
authorMartin Storsjö <martin@martin.st>
Fri, 13 Dec 2013 22:27:26 +0000 (00:27 +0200)
committerMartin Storsjö <martin@martin.st>
Sat, 14 Dec 2013 15:48:46 +0000 (17:48 +0200)
commit6451c8853a07ff2e28bda950fb5e83fcf88c5cf4
tree5022b9346bfa2b2d2bee2c2b648500bfcf5a8a3d
parent797f2a791397210ec1b591b326658805c5dbf104
sdp: Check theora colorspace before producing the configuration string

This avoids a memory leak (or having to worry about freeing the
config string) if the colorspace isn't accepted.

Signed-off-by: Martin Storsjö <martin@martin.st>
libavformat/sdp.c