Commit 97eb308a authored by vitor's avatar vitor

10l: fix compiler warning


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17075 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent be23eaed
...@@ -62,6 +62,7 @@ static int nc_read_header(AVFormatContext *s, AVFormatParameters *ap) ...@@ -62,6 +62,7 @@ static int nc_read_header(AVFormatContext *s, AVFormatParameters *ap)
static int nc_read_packet(AVFormatContext *s, AVPacket *pkt) static int nc_read_packet(AVFormatContext *s, AVPacket *pkt)
{ {
int size; int size;
int ret;
uint32_t state=-1; uint32_t state=-1;
while (state != NC_VIDEO_FLAG) { while (state != NC_VIDEO_FLAG) {
...@@ -79,7 +80,7 @@ static int nc_read_packet(AVFormatContext *s, AVPacket *pkt) ...@@ -79,7 +80,7 @@ static int nc_read_packet(AVFormatContext *s, AVPacket *pkt)
return AVERROR(EAGAIN); return AVERROR(EAGAIN);
} }
int ret = av_get_packet(s->pb, pkt, size); ret = av_get_packet(s->pb, pkt, size);
if (ret != size) { if (ret != size) {
if (ret > 0) av_free_packet(pkt); if (ret > 0) av_free_packet(pkt);
return AVERROR(EIO); return AVERROR(EIO);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment