[FFmpeg-devel] [RFC]Possible problem in avio.c
Carl Eugen Hoyos
cehoyos
Mon Dec 22 02:27:49 CET 2008
Hi!
Regression tests contain following command:
./ffmpeg_g -y -flags +bitexact -dct fastint -idct simple -sws_flags
+accurate_rnd+bitexact -i ././tests/data/a-pcm_s16be.mkv -sample_fmt s16
-f wav ././tests/data/pcm.vsynth.out.wav
This line crashes if ffmpeg was compiled with icc 10.1 64bit.
Backtrace shows the crash occurs in line 584 of avio.c. The crash
disappears if I compile just avio.c with gcc.
But if attached patch is applied, the crash also occurs if the whole
project is compiled with gcc, so I suspect a problem either with avio or
the code in matroskadec that calls it.
Or am I missing something?
Carl Eugen
-------------- next part --------------
Index: libavformat/aviobuf.c
===================================================================
--- libavformat/aviobuf.c (revision 16255)
+++ libavformat/aviobuf.c (working copy)
@@ -581,6 +581,8 @@
int url_resetbuf(ByteIOContext *s, int flags)
{
URLContext *h = s->opaque;
+#undef printf
+if(!(flags & URL_RDWR) && h)printf("h->flags: %d", h->flags);
if ((flags & URL_RDWR) || (h && h->flags != flags && !h->flags & URL_RDWR))
return AVERROR(EINVAL);
More information about the ffmpeg-devel
mailing list