[FFmpeg-devel] remove int readers
Benoit Fouet
benoit.fouet
Wed Jun 13 14:41:02 CEST 2007
Hi,
Ronald S. Bultje wrote:
> Hi,
>
> same patch, but now for all of libavformat. See $subj and my earlier
> email.
>
>
>Index: ffmpeg/libavformat/mp3.c
>===================================================================
>--- ffmpeg.orig/libavformat/mp3.c 2007-06-05 02:11:13.000000000 -0400
>+++ ffmpeg/libavformat/mp3.c 2007-06-13 07:22:58.000000000 -0400
>@@ -406,7 +406,7 @@
> buf2 = buf;
>
> for(frames = 0; buf2 < end; frames++) {
>- header = (buf2[0] << 24) | (buf2[1] << 16) | (buf2[2] <<
8) | buf2[3];
>+ header = AV_RB32(buf[2]);
>
buf2, no ?
>Index: ffmpeg/libavformat/rtp.c
>===================================================================
>--- ffmpeg.orig/libavformat/rtp.c 2007-06-13 07:13:19.000000000 -0400
>+++ ffmpeg/libavformat/rtp.c 2007-06-13 07:37:04.000000000 -0400
>@@ -693,7 +693,7 @@
> break;
> default:
> if(s->parse_packet) {
>- rv= s->parse_packet(s, pkt, ×tamp, buf, len);
>+ rv= s->parse_packet(s, pkt, ×tamp, buf, len);
> } else {
>
tabs are forbidden in svn
>Index: ffmpeg/libavformat/ffm.c
>===================================================================
>--- ffmpeg.orig/libavformat/ffm.c 2007-06-05 02:11:12.000000000 -0400
>+++ ffmpeg/libavformat/ffm.c 2007-06-13 07:31:26.000000000 -0400
>@@ -720,8 +720,7 @@
> lseek(fd, 8, SEEK_SET);
> read(fd, buf, 8);
> pos = 0;
>- for(i=0;i<8;i++)
>- pos |= (int64_t)buf[i] << (56 - i * 8);
>+ pos = AV_RB64(buf);
>
the pos = 0 seems unneeded now too
and i also have problem with your patches, they may have a "wrong" mime
type...
Ben
--
Purple Labs S.A.
www.purplelabs.com
More information about the ffmpeg-devel
mailing list