Skip to content

Commit

Permalink
Fix a couple gcc warnings in AVFormatWriter.
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-kristjansson committed Nov 26, 2012
1 parent de0cd12 commit cf8d1cb
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions mythtv/libs/libmythtv/avformatwriter.cpp
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit cf8d1cb

Please sign in to comment.