mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-25 00:32:31 +00:00
fix tools compilation
Originally committed as revision 9712 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
975741e79c
commit
83ef1fea65
4
Makefile
4
Makefile
@ -102,10 +102,10 @@ version.h:
|
|||||||
output_example$(EXESUF): output_example.o .libs
|
output_example$(EXESUF): output_example.o .libs
|
||||||
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(EXTRALIBS)
|
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(EXTRALIBS)
|
||||||
|
|
||||||
tools/qt-faststart$(EXESUF): qt-faststart.c
|
tools/qt-faststart$(EXESUF): tools/qt-faststart.c
|
||||||
$(CC) $(CFLAGS) $< -o $@
|
$(CC) $(CFLAGS) $< -o $@
|
||||||
|
|
||||||
tools/cws2fws$(EXESUF): cws2fws.c
|
tools/cws2fws$(EXESUF): tools/cws2fws.c
|
||||||
$(CC) $(CFLAGS) $< -o $@ -lz
|
$(CC) $(CFLAGS) $< -o $@ -lz
|
||||||
|
|
||||||
ffplay.o: CFLAGS += $(SDL_CFLAGS)
|
ffplay.o: CFLAGS += $(SDL_CFLAGS)
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
#define dbgprintf printf
|
#define dbgprintf printf
|
||||||
#else
|
#else
|
||||||
#define dbgprintf
|
#define dbgprintf(...)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
int main(int argc, char *argv[])
|
int main(int argc, char *argv[])
|
||||||
@ -111,13 +111,13 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
if (zstream.total_out != uncomp_len-8)
|
if (zstream.total_out != uncomp_len-8)
|
||||||
{
|
{
|
||||||
printf("Size mismatch (%d != %d), updating header...\n",
|
printf("Size mismatch (%lu != %d), updating header...\n",
|
||||||
zstream.total_out, uncomp_len-8);
|
zstream.total_out, uncomp_len-8);
|
||||||
|
|
||||||
buf_in[0] = (zstream.total_out+8) & 0xff;
|
buf_in[0] = (zstream.total_out+8) & 0xff;
|
||||||
buf_in[1] = (zstream.total_out+8 >> 8) & 0xff;
|
buf_in[1] = ((zstream.total_out+8) >> 8) & 0xff;
|
||||||
buf_in[2] = (zstream.total_out+8 >> 16) & 0xff;
|
buf_in[2] = ((zstream.total_out+8) >> 16) & 0xff;
|
||||||
buf_in[3] = (zstream.total_out+8 >> 24) & 0xff;
|
buf_in[3] = ((zstream.total_out+8) >> 24) & 0xff;
|
||||||
|
|
||||||
lseek(fd_out, 4, SEEK_SET);
|
lseek(fd_out, 4, SEEK_SET);
|
||||||
write(fd_out, &buf_in, 4);
|
write(fd_out, &buf_in, 4);
|
||||||
|
Loading…
Reference in New Issue
Block a user