small fix
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>
Wed, 24 Sep 2008 08:14:16 +0000 (08:14 +0000)
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>
Wed, 24 Sep 2008 08:14:16 +0000 (08:14 +0000)
lib/dvb/decoder.cpp

index 71b3f39e055d916d2d6c570133b89c04a508b673..57f48ee3a7e6cb1ad382b4f03df97f5ab32d4f1a 100644 (file)
@@ -1187,6 +1187,8 @@ RESULT eTSMPEGDecoder::showSinglePic(const char *filename)
                                        ++pos;
                                if ((iframe[3] >> 4) != 0xE) // no pes header
                                        write(m_video_clip_fd, pes_header, sizeof(pes_header));
+                               else
+                                       iframe[4] = iframe[5] = 0x00;
                                write(m_video_clip_fd, iframe, s.st_size);
                                if (!seq_end_avail)
                                        write(m_video_clip_fd, seq_end, sizeof(seq_end));