Revision 7002684e

View differences:

ffmpeg.c
559 559
                fprintf(ost->logfile, "%s", enc->stats_out);
560 560
            }
561 561
        } else {
562
            write_picture(s, ost->index, picture, enc->pix_fmt, enc->width, enc->height);
562
            if (s->oformat->flags & AVFMT_RAWPICTURE) {
563
                /* raw pictures are written as AVPicture structure to
564
                   avoid any copies. We support temorarily the older
565
                   method. */
566
                s->oformat->write_packet(s, ost->index, 
567
                                         (UINT8 *)picture, sizeof(AVPicture), 0);
568
            } else {
569
                write_picture(s, ost->index, picture, enc->pix_fmt, enc->width, enc->height);
570
            }
563 571
        }
564 572
    }
565 573
    the_end:

Also available in: Unified diff