diff mpegvideo.c @ 1234:fc2a7eefa9cc libavcodec

svq3 decoder by anonymous
author michaelni
date Fri, 09 May 2003 22:16:14 +0000
parents d63e0185a90f
children 2fa34e615c76
line wrap: on
line diff
--- a/mpegvideo.c	Thu May 08 02:01:17 2003 +0000
+++ b/mpegvideo.c	Fri May 09 22:16:14 2003 +0000
@@ -928,7 +928,7 @@
 
     s->mb_skiped = 0;
 
-    assert(s->last_picture_ptr==NULL || s->out_format != FMT_H264);
+    assert(s->last_picture_ptr==NULL || s->out_format != FMT_H264 || s->codec_id == CODEC_ID_SVQ3);
 
     /* mark&release old frames */
     if (s->pict_type != B_TYPE && s->last_picture_ptr) {
@@ -973,7 +973,7 @@
 
     s->current_picture= *s->current_picture_ptr;
   
-  if(s->out_format != FMT_H264){
+  if(s->out_format != FMT_H264 || s->codec_id == CODEC_ID_SVQ3){
     if (s->pict_type != B_TYPE) {
         s->last_picture_ptr= s->next_picture_ptr;
         s->next_picture_ptr= s->current_picture_ptr;