Browse code

- Bug fix in map stream parser

Originally committed as revision 483 to svn://svn.ffmpeg.org/ffmpeg/trunk

Juanjo authored on 2002/05/12 08:27:14
Showing 1 changed files
... ...
@@ -489,8 +489,12 @@ static void do_video_out(AVFormatContext *s,
489 489
             ret = avcodec_encode_video(enc, 
490 490
                                        video_buffer, sizeof(video_buffer), 
491 491
                                        picture);
492
+            //enc->frame_number = enc->r_pict_num;
492 493
             s->format->write_packet(s, ost->index, video_buffer, ret, 0);
493 494
             *frame_size = ret;
495
+            //fprintf(stderr,"\nFrame: %3d %3d size: %5d type: %d",
496
+            //        enc->frame_number-1, enc->r_pict_num, ret,
497
+            //        enc->pict_type);
494 498
         } else {
495 499
             write_picture(s, ost->index, picture, enc->pix_fmt, enc->width, enc->height);
496 500
         }
... ...
@@ -1466,7 +1470,8 @@ void opt_map(const char *arg)
1466 1466
     m->file_index = strtol(arg, (char **)&p, 0);
1467 1467
     if (*p)
1468 1468
         p++;
1469
-    m->stream_index = strtol(arg, (char **)&p, 0);
1469
+
1470
+    m->stream_index = strtol(p, (char **)&p, 0);
1470 1471
 }
1471 1472
 
1472 1473
 void opt_recording_time(const char *arg)