diff options
author | Hendrik Leppkes <h.leppkes@gmail.com> | 2012-10-12 19:30:51 +0400 |
---|---|---|
committer | Hendrik Leppkes <h.leppkes@gmail.com> | 2012-10-12 19:30:51 +0400 |
commit | a128ec63ddcd549e821bb00f3cdf1a2bb51d4a6a (patch) | |
tree | 846db72b897673a354d13e7236dce3c5b4bb5df5 /decoder/LAVVideo | |
parent | 2f95eb39aa0b74a7b4e32e31d2b598b6705622b2 (diff) |
cuvid: init state variable
Diffstat (limited to 'decoder/LAVVideo')
-rw-r--r-- | decoder/LAVVideo/decoders/cuvid.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/decoder/LAVVideo/decoders/cuvid.cpp b/decoder/LAVVideo/decoders/cuvid.cpp index 58c96d02..4b2b9064 100644 --- a/decoder/LAVVideo/decoders/cuvid.cpp +++ b/decoder/LAVVideo/decoders/cuvid.cpp @@ -1156,7 +1156,7 @@ STDMETHODIMP CDecCuvid::Decode(const BYTE *buffer, int buflen, REFERENCE_TIME rt // This is mostly required to get still-frames in DVDs (and possibly Blu-rays) to output as soon as they are ready, // otherwise they might be delayed until the next track switch, and all you see is black (or the previous image) if (m_VideoDecoderInfo.CodecType == cudaVideoCodec_MPEG2 && pCuvidPacket.payload && pCuvidPacket.payload_size >= 4) { - uint32_t state; + uint32_t state = (uint32_t)-1; const uint8_t *p = pCuvidPacket.payload, *end = pCuvidPacket.payload + pCuvidPacket.payload_size; while (p < end) { p = avpriv_mpv_find_start_code(p, end, &state); |