]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/idroq.c
warn the user about the the mdhd problem
[ffmpeg] / libavformat / idroq.c
index b8ee176ab9cbe851c7384176a0ca74aafe14cd3f..27dc081668d2d6cab30d1f9e4e6ebb1e60a94594 100644 (file)
@@ -58,9 +58,6 @@ typedef struct RoqDemuxContext {
 
 static int roq_probe(AVProbeData *p)
 {
-    if (p->buf_size < 6)
-        return 0;
-
     if ((AV_RL16(&p->buf[0]) != RoQ_MAGIC_NUMBER) ||
         (AV_RL32(&p->buf[2]) != 0xFFFFFFFF))
         return 0;
@@ -275,7 +272,7 @@ static int roq_read_packet(AVFormatContext *s,
 
 static int roq_read_close(AVFormatContext *s)
 {
-//    RoqDemuxContext *roq = (RoqDemuxContext *)s->priv_data;
+//    RoqDemuxContext *roq = s->priv_data;
 
     return 0;
 }