Commit f74b0407 authored by bcoudurier's avatar bcoudurier

cosmetics, rename first to header, more explicit name

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@13677 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 6bd40d38
...@@ -79,7 +79,7 @@ static int ffm_is_avail_data(AVFormatContext *s, int size) ...@@ -79,7 +79,7 @@ static int ffm_is_avail_data(AVFormatContext *s, int size)
/* first is true if we read the frame header */ /* first is true if we read the frame header */
static int ffm_read_data(AVFormatContext *s, static int ffm_read_data(AVFormatContext *s,
uint8_t *buf, int size, int first) uint8_t *buf, int size, int header)
{ {
FFMContext *ffm = s->priv_data; FFMContext *ffm = s->priv_data;
ByteIOContext *pb = s->pb; ByteIOContext *pb = s->pb;
...@@ -122,7 +122,7 @@ static int ffm_read_data(AVFormatContext *s, ...@@ -122,7 +122,7 @@ static int ffm_read_data(AVFormatContext *s,
if ((frame_offset & 0x7fff) < FFM_HEADER_SIZE) if ((frame_offset & 0x7fff) < FFM_HEADER_SIZE)
return -1; return -1;
ffm->packet_ptr = ffm->packet + (frame_offset & 0x7fff) - FFM_HEADER_SIZE; ffm->packet_ptr = ffm->packet + (frame_offset & 0x7fff) - FFM_HEADER_SIZE;
if (!first) if (!header)
break; break;
} else { } else {
ffm->packet_ptr = ffm->packet; ffm->packet_ptr = ffm->packet;
...@@ -133,7 +133,7 @@ static int ffm_read_data(AVFormatContext *s, ...@@ -133,7 +133,7 @@ static int ffm_read_data(AVFormatContext *s,
buf += len; buf += len;
ffm->packet_ptr += len; ffm->packet_ptr += len;
size -= len; size -= len;
first = 0; header = 0;
} }
return size1 - size; return size1 - size;
} }
......
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