fix rawvideo
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 9 Feb 2007 13:24:08 +0000 (13:24 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 9 Feb 2007 13:24:08 +0000 (13:24 +0000)
Originally committed as revision 7899 to svn://svn.ffmpeg.org/ffmpeg/trunk

ffplay.c

index feaae38..644ae71 100644 (file)
--- a/ffplay.c
+++ b/ffplay.c
@@ -1866,6 +1866,10 @@ static int decode_thread(void *arg)
     ap->initial_pause = 1; /* we force a pause when starting an RTSP
                               stream */
 
     ap->initial_pause = 1; /* we force a pause when starting an RTSP
                               stream */
 
+    ap->width = screen_width;
+    ap->height= screen_height;
+    ap->time_base= (AVRational){1, 25};
+
     err = av_open_input_file(&ic, is->filename, is->iformat, 0, ap);
     if (err < 0) {
         print_error(is->filename, err);
     err = av_open_input_file(&ic, is->filename, is->iformat, 0, ap);
     if (err < 0) {
         print_error(is->filename, err);