Skip to content
Browse files

Properly initialize variable.

There's more to be done there, that got packet is false doesn't mean there's an error, it means we need to call avcodec_encode_video2 again with more data.

Coverity #1046925.
  • Loading branch information
jyavenard committed Jul 12, 2013
1 parent bb8d2f1 commit a4f5ebc015c9b7cf0f5cb988febb0ecb307d2b1b
Showing with 1 addition and 0 deletions.
  1. +1 −0 mythtv/libs/libmythtv/recorders/NuppelVideoRecorder.cpp
@@ -2950,6 +2950,7 @@ void NuppelVideoRecorder::WriteVideo(VideoFrame *frame, bool skipsync,
if (!hardware_encode)
AVPacket packet;
av_init_packet(&packet); = (uint8_t *)strm;
packet.size = len;

0 comments on commit a4f5ebc

Please sign in to comment.
You can’t perform that action at this time.