Revision 87bdd3e5 libav/raw.c

View differences:

libav/raw.c
443 443
    raw_write_trailer,
444 444
};
445 445

  
446
static int null_write_packet(struct AVFormatContext *s, 
447
                             int stream_index,
448
                             unsigned char *buf, int size, int force_pts)
449
{
450
    return 0;
451
}
452

  
453
AVOutputFormat null_oformat = {
454
    "null",
455
    "null video format",
456
    NULL,
457
    NULL,
458
    0,
459
#ifdef WORDS_BIGENDIAN
460
    CODEC_ID_PCM_S16BE,
461
#else
462
    CODEC_ID_PCM_S16LE,
463
#endif
464
    CODEC_ID_RAWVIDEO,
465
    raw_write_header,
466
    null_write_packet,
467
    raw_write_trailer,
468
    flags: AVFMT_NOFILE | AVFMT_RAWPICTURE,
469
};
470

  
446 471
int raw_init(void)
447 472
{
448 473
    av_register_input_format(&mp3_iformat);
......
481 506

  
482 507
    av_register_input_format(&rawvideo_iformat);
483 508
    av_register_output_format(&rawvideo_oformat);
509

  
510
    av_register_output_format(&null_oformat);
484 511
    return 0;
485 512
}

Also available in: Unified diff