mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-05-24 14:36:09 -04:00
use camel case on video_stream and audio_stream
This commit is contained in:
@@ -68,7 +68,7 @@ RemoteCameraNVSocket::RemoteCameraNVSocket(
|
||||
timeout.tv_sec = 0;
|
||||
timeout.tv_usec = 0;
|
||||
subpixelorder = ZM_SUBPIX_ORDER_BGR;
|
||||
video_stream = NULL;
|
||||
mVideoStream = NULL;
|
||||
|
||||
if ( capture ) {
|
||||
Initialise();
|
||||
@@ -212,27 +212,3 @@ int RemoteCameraNVSocket::Capture( ZMPacket &zm_packet ) {
|
||||
int RemoteCameraNVSocket::PostCapture() {
|
||||
return( 0 );
|
||||
}
|
||||
AVStream *RemoteCameraNVSocket::get_VideoStream() {
|
||||
if ( ! video_stream ) {
|
||||
AVFormatContext *oc = avformat_alloc_context();
|
||||
video_stream = avformat_new_stream( oc, NULL );
|
||||
if ( video_stream ) {
|
||||
#if LIBAVCODEC_VERSION_CHECK(57, 64, 0, 64, 0)
|
||||
video_stream->codecpar->width = width;
|
||||
video_stream->codecpar->height = height;
|
||||
video_stream->codecpar->format = GetFFMPEGPixelFormat(colours,subpixelorder);
|
||||
video_stream->codecpar->codec_type = AVMEDIA_TYPE_VIDEO;
|
||||
#else
|
||||
video_stream->codec->width = width;
|
||||
video_stream->codec->height = height;
|
||||
video_stream->codec->pix_fmt = GetFFMPEGPixelFormat(colours,subpixelorder);
|
||||
video_stream->codec->codec_type = AVMEDIA_TYPE_VIDEO;
|
||||
#endif
|
||||
} else {
|
||||
Error("Can't create video stream");
|
||||
}
|
||||
} else {
|
||||
Debug(5,"Have videostream");
|
||||
}
|
||||
return video_stream;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user