spacing and NULL=>nullptr
This commit is contained in:
parent
f842e9e2ed
commit
824cbb7879
|
@ -2255,7 +2255,7 @@ int LocalCamera::PostCapture() {
|
||||||
AVStream *LocalCamera::get_VideoStream() {
|
AVStream *LocalCamera::get_VideoStream() {
|
||||||
if ( ! video_stream ) {
|
if ( ! video_stream ) {
|
||||||
AVFormatContext *oc = avformat_alloc_context();
|
AVFormatContext *oc = avformat_alloc_context();
|
||||||
video_stream = avformat_new_stream( oc, NULL );
|
video_stream = avformat_new_stream(oc, nullptr);
|
||||||
if ( video_stream ) {
|
if ( video_stream ) {
|
||||||
video_stream->time_base = (AVRational){1, 1000000}; // microseconds as base frame rate
|
video_stream->time_base = (AVRational){1, 1000000}; // microseconds as base frame rate
|
||||||
#if LIBAVCODEC_VERSION_CHECK(57, 64, 0, 64, 0)
|
#if LIBAVCODEC_VERSION_CHECK(57, 64, 0, 64, 0)
|
||||||
|
|
Loading…
Reference in New Issue