Mercurial > libavformat.hg
comparison grab.c @ 1169:d18cc9a1fd02 libavformat
allow individual selection of muxers and demuxers
author | mru |
---|---|
date | Mon, 10 Jul 2006 21:14:37 +0000 |
parents | d89d7ef290da |
children | d584d375f928 |
comparison
equal
deleted
inserted
replaced
1168:c894489e2abe | 1169:d18cc9a1fd02 |
---|---|
363 | 363 |
364 close(s->fd); | 364 close(s->fd); |
365 return 0; | 365 return 0; |
366 } | 366 } |
367 | 367 |
368 static AVInputFormat video_grab_device_demuxer = { | 368 AVInputFormat video_grab_device_demuxer = { |
369 "video4linux", | 369 "video4linux", |
370 "video grab", | 370 "video grab", |
371 sizeof(VideoData), | 371 sizeof(VideoData), |
372 NULL, | 372 NULL, |
373 grab_read_header, | 373 grab_read_header, |
846 { | 846 { |
847 av_freep(&s->lum_m4_mem); | 847 av_freep(&s->lum_m4_mem); |
848 av_freep(&s->src_mem); | 848 av_freep(&s->src_mem); |
849 return 0; | 849 return 0; |
850 } | 850 } |
851 | |
852 int video_grab_init(void) | |
853 { | |
854 av_register_input_format(&video_grab_device_demuxer); | |
855 return 0; | |
856 } |