]> git.sesse.net Git - ffmpeg/commitdiff
avformat: allow .264 as extension for raw H.264 stream
authorWerner Robitza <werner.robitza@gmail.com>
Thu, 22 Jan 2015 21:02:36 +0000 (22:02 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 22 Jan 2015 22:13:08 +0000 (23:13 +0100)
In addition to .h264, .264 is also commonly used by people to name raw H.264
streams. Enables automatic recognition of the h264 format for the .264
extension.

Signed-off-by: Werner Robitza <werner.robitza@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/rawenc.c

index 8b50fe1f173ec7e9b09e190c1478f6e1f3152d14..9b77cdcab253c6cf8e8d4c7c92974b3aae21294c 100644 (file)
@@ -205,7 +205,7 @@ AVOutputFormat ff_h263_muxer = {
 AVOutputFormat ff_h264_muxer = {
     .name              = "h264",
     .long_name         = NULL_IF_CONFIG_SMALL("raw H.264 video"),
-    .extensions        = "h264",
+    .extensions        = "h264,264",
     .audio_codec       = AV_CODEC_ID_NONE,
     .video_codec       = AV_CODEC_ID_H264,
     .write_header      = force_one_stream,