Revert "avformat/rawdec: set framerate in codec parameters"
Fixes single image videos this works and creates our single image video ./ffmpeg -i lena.pnm /tmp/file.m2v this fails after3d96d83a0a: ./ffmpeg -i /tmp/file.m2v /tmp/file.jpg -y This reverts commit3d96d83a0a.
This commit is contained in:
parent
9ed71a837b
commit
12e7d095b1
9 changed files with 131 additions and 131 deletions
|
|
@ -83,9 +83,9 @@ int ff_raw_video_read_header(AVFormatContext *s)
|
|||
|
||||
st->codecpar->codec_type = AVMEDIA_TYPE_VIDEO;
|
||||
st->codecpar->codec_id = ffifmt(s->iformat)->raw_codec_id;
|
||||
st->codecpar->framerate = s1->framerate;
|
||||
sti->need_parsing = AVSTREAM_PARSE_FULL_RAW;
|
||||
|
||||
st->avg_frame_rate = s1->framerate;
|
||||
avpriv_set_pts_info(st, 64, 1, 1200000);
|
||||
|
||||
fail:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue