tizen 2.3.1 release
[framework/multimedia/gst-plugins-base0.10.git] / ext / ogg / gstoggstream.c
index 3b267fa..5fa0eb9 100644 (file)
@@ -797,7 +797,7 @@ setup_vorbis_mapper (GstOggStream * pad, ogg_packet * packet)
 static gboolean
 is_header_vorbis (GstOggStream * pad, ogg_packet * packet)
 {
-  if (packet->bytes > 0 && (packet->packet[0] & 0x01) == 0)
+  if (packet->bytes == 0 || (packet->packet[0] & 0x01) == 0)
     return FALSE;
 
   if (packet->packet[0] == 5) {