avformat/mov: Mark avio context of decompressed atoms as seekable
authorMichael Niedermayer <michaelni@gmx.at>
Sun, 24 May 2015 23:26:55 +0000 (01:26 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Sun, 24 May 2015 23:26:55 +0000 (01:26 +0200)
Fixes Ticket4329

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/mov.c

index f1df6ce..e32f7f4 100644 (file)
@@ -3344,6 +3344,7 @@ static int mov_read_cmov(MOVContext *c, AVIOContext *pb, MOVAtom atom)
         goto free_and_return;
     if (ffio_init_context(&ctx, moov_data, moov_len, 0, NULL, NULL, NULL, NULL) != 0)
         goto free_and_return;
+    ctx.seekable = AVIO_SEEKABLE_NORMAL;
     atom.type = MKTAG('m','o','o','v');
     atom.size = moov_len;
     ret = mov_read_default(c, &ctx, atom);