oma: return meaningful errors
[ffmpeg.git] / libavformat / nullenc.c
index 680b29c..829f2a8 100644 (file)
@@ -28,9 +28,9 @@ static int null_write_packet(struct AVFormatContext *s, AVPacket *pkt)
 
 AVOutputFormat ff_null_muxer = {
     .name              = "null",
-    .long_name         = NULL_IF_CONFIG_SMALL("raw null video format"),
-    .audio_codec       = AV_NE(CODEC_ID_PCM_S16BE, CODEC_ID_PCM_S16LE),
-    .video_codec       = CODEC_ID_RAWVIDEO,
+    .long_name         = NULL_IF_CONFIG_SMALL("raw null video"),
+    .audio_codec       = AV_NE(AV_CODEC_ID_PCM_S16BE, AV_CODEC_ID_PCM_S16LE),
+    .video_codec       = AV_CODEC_ID_RAWVIDEO,
     .write_packet      = null_write_packet,
-    .flags = AVFMT_NOFILE | AVFMT_NOTIMESTAMPS,
+    .flags             = AVFMT_NOFILE | AVFMT_NOTIMESTAMPS | AVFMT_RAWPICTURE,
 };