diff mbox

[FFmpeg-devel] avdevice/decklink_dec: properly initialize no_video variable

Message ID 20161210122658.6373-1-cus@passwd.hu
State Accepted
Commit 89a1471a72cb6e3bb58220584866af54092e446d
Headers show

Commit Message

Marton Balint Dec. 10, 2016, 12:26 p.m. UTC
Fixes Coverity CID 1396859.

Signed-off-by: Marton Balint <cus@passwd.hu>
---
 libavdevice/decklink_dec.cpp | 1 +
 1 file changed, 1 insertion(+)

Comments

Marton Balint Dec. 27, 2016, 12:24 a.m. UTC | #1
On Sat, 10 Dec 2016, Marton Balint wrote:

> Fixes Coverity CID 1396859.
>
> Signed-off-by: Marton Balint <cus@passwd.hu>
> ---
> libavdevice/decklink_dec.cpp | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/libavdevice/decklink_dec.cpp b/libavdevice/decklink_dec.cpp
> index c98c51f..7df841b 100644
> --- a/libavdevice/decklink_dec.cpp
> +++ b/libavdevice/decklink_dec.cpp
> @@ -208,6 +208,7 @@ decklink_input_callback::decklink_input_callback(AVFormatContext *_avctx) : m_re
>     avctx = _avctx;
>     decklink_cctx       *cctx = (struct decklink_cctx *)avctx->priv_data;
>     ctx = (struct decklink_ctx *)cctx->ctx;
> +    no_video = 0;
>     initial_audio_pts = initial_video_pts = AV_NOPTS_VALUE;
>     pthread_mutex_init(&m_mutex, NULL);
> }

Applied.

Regards,
Marton
diff mbox

Patch

diff --git a/libavdevice/decklink_dec.cpp b/libavdevice/decklink_dec.cpp
index c98c51f..7df841b 100644
--- a/libavdevice/decklink_dec.cpp
+++ b/libavdevice/decklink_dec.cpp
@@ -208,6 +208,7 @@  decklink_input_callback::decklink_input_callback(AVFormatContext *_avctx) : m_re
     avctx = _avctx;
     decklink_cctx       *cctx = (struct decklink_cctx *)avctx->priv_data;
     ctx = (struct decklink_ctx *)cctx->ctx;
+    no_video = 0;
     initial_audio_pts = initial_video_pts = AV_NOPTS_VALUE;
     pthread_mutex_init(&m_mutex, NULL);
 }