[Ffmpeg-devel] Demuxing still pictures in dvd's II

stanley kamithi skamithi
Sat Feb 18 17:14:25 CET 2006


hello,

i'm adding dvd menu support to the mythtv project and ran into the problem
described in

http://comments.gmane.org/gmane.comp.video.ffmpeg.devel/24165

from the thread it looks like no progress was made.

I wanted to get advice and/or opinion on the following patch I use to
address this issue.
my ultimate goal is to find some way to detect that the video stream has
stopped,
so that I can run avcodec_decode_video twice on the last frame.

only clue , from a mpeg perspective,  I can find is the dvd produces the
mpeg sequence end code when it's in a
still frame dvd cell.

If someone has any other ideas, please let me know. I'm kinda new to mpeg
programming so any advice or direction
on this matter will be helpful.

Index: mpeg12.c
===================================================================
RCS file: /cvsroot/ffmpeg/ffmpeg/libavcodec/mpeg12.c,v
retrieving revision 1.248
diff -u -r1.248 mpeg12.c
--- mpeg12.c    4 Feb 2006 20:32:02 -0000       1.248
+++ mpeg12.c    18 Feb 2006 16:03:42 -0000
@@ -2980,6 +2980,8 @@
                 pc->frame_start_found=1;
                 break;
             }
+            if (state == SEQ_END_CODE)
+                return buf_size;
         }
     }


many thanks.




More information about the ffmpeg-devel mailing list