OSDN Git Service
(root)
/
coroid
/
ffmpeg_saccubus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
09f75b5
)
default to YUV420P if none specified for rawvideo input
author
Michael Niedermayer
<michaelni@gmx.at>
Fri, 6 May 2005 21:28:55 +0000
(21:28 +0000)
committer
Michael Niedermayer
<michaelni@gmx.at>
Fri, 6 May 2005 21:28:55 +0000
(21:28 +0000)
a few more common extensions for rawvideo detection
Originally committed as revision 4192 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/raw.c
patch
|
blob
|
history
diff --git
a/libavformat/raw.c
b/libavformat/raw.c
index
e70be2b
..
243c03d
100644
(file)
--- a/
libavformat/raw.c
+++ b/
libavformat/raw.c
@@
-66,7
+66,9
@@
static int raw_read_header(AVFormatContext *s, AVFormatParameters *ap)
av_set_pts_info(st, 64, ap->time_base.num, ap->time_base.den);
st->codec.width = ap->width;
st->codec.height = ap->height;
- st->codec.pix_fmt = ap->pix_fmt;
+ st->codec.pix_fmt = ap->pix_fmt;
+ if(st->codec.pix_fmt == PIX_FMT_NONE)
+ st->codec.pix_fmt= PIX_FMT_YUV420P;
break;
default:
return -1;
@@
-642,7
+644,7
@@
AVInputFormat rawvideo_iformat = {
raw_read_header,
rawvideo_read_packet,
raw_read_close,
- .extensions = "yuv",
+ .extensions = "yuv
,cif,qcif
",
.value = CODEC_ID_RAWVIDEO,
};