sdp: Simplify parsing/conversion of H264 extradata
authorMartin Storsjö <martin@martin.st>
Fri, 3 Oct 2014 17:49:01 +0000 (20:49 +0300)
committerMartin Storsjö <martin@martin.st>
Mon, 6 Oct 2014 20:29:58 +0000 (23:29 +0300)
commitb76249443864c88ffb2d41ab8d1de7432e985dc7
tree4b5ce2a65a57546268a1387570192d057ca50d15
parent153fadc390d05aa47e5e2c56290401898fe41a23
sdp: Simplify parsing/conversion of H264 extradata

By using ff_avc_write_annexb_extradata instead of the h264_mp4toannexb
BSF, the code for doing the conversion itself is kept much shorter,
there's less state to restore at the end, we don't risk leaving the
AVCodecContext in an inconsistent state if returning early due to
errors, etc.

Also add a missing free if the base64 encoding fails.

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