Skip to content
Snippets Groups Projects
Commit b7624944 authored by Martin Storsjö's avatar Martin Storsjö
Browse files

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: default avatarMartin Storsjö <martin@martin.st>
parent 153fadc3
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment