Commit d8ee4e6f authored by Tristan Matthews's avatar Tristan Matthews
Browse files

* #28334: video: use &buffer[0] for string

This guarantees a pointer to the string's contiguous buffer.
The iterator interface for std::string does not guarantee this.
parent cec9631e
......@@ -62,7 +62,7 @@ void VideoSendThread::print_sdp()
/* theora sdp can be huge */
const size_t sdp_size = outputCtx_->streams[0]->codec->extradata_size + 2048;
std::string sdp(sdp_size, 0);
av_sdp_create(&outputCtx_, 1, &(*sdp.begin()), sdp_size);
av_sdp_create(&outputCtx_, 1, &sdp[0], sdp_size);
std::istringstream iss(sdp);
string line;
sdp_ = "";
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment