movenc: remove redundant check
authorLuca Barbato <lu_zero@gentoo.org>
Wed, 11 Apr 2012 10:37:13 +0000 (03:37 -0700)
committerMartin Storsjö <martin@martin.st>
Wed, 11 Apr 2012 11:38:36 +0000 (14:38 +0300)
The proper check is already in mov_write_header.

Signed-off-by: Martin Storsjö <martin@martin.st>
libavformat/movenc.c

index 5777443..ce65614 100644 (file)
@@ -2816,9 +2816,6 @@ static int mov_write_packet_internal(AVFormatContext *s, AVPacket *pkt)
     uint8_t *reformatted_data = NULL;
     int64_t frag_duration = 0;
 
-    if (!s->pb->seekable && !(mov->flags & FF_MOV_FLAG_EMPTY_MOOV))
-        return 0; /* Can't handle that */
-
     if (!size) return 0; /* Discard 0 sized packets */
 
     if (trk->entry)