Permalink
Browse files

Fix a couple gcc warnings in AVFormatWriter.

  • Loading branch information...
daniel-kristjansson committed Nov 26, 2012
1 parent de0cd12 commit cf8d1cbcaf948aa39d34521d2db4b6a037dbab05
Showing with 2 additions and 4 deletions.
  1. +2 −4 mythtv/libs/libmythtv/avformatwriter.cpp
@@ -246,9 +246,7 @@ bool AVFormatWriter::NextFrameIsKeyFrame(void)
int AVFormatWriter::WriteVideoFrame(VideoFrame *frame)
{
AVCodecContext *c;
c = m_videoStream->codec;
//AVCodecContext *c = m_videoStream->codec;
uint8_t *planes[3];
int len = frame->size;
@@ -461,7 +459,7 @@ AVStream* AVFormatWriter::AddVideoStream(void)
{
LOG(VB_RECORD, LOG_ERR,
LOC + "AddVideoStream(): avcodec_find_encoder() failed");
return false;
return NULL;
}
avcodec_get_context_defaults3(c, codec);

0 comments on commit cf8d1cb

Please sign in to comment.