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 after 3d96d83a0a:
./ffmpeg -i /tmp/file.m2v /tmp/file.jpg -y

This reverts commit 3d96d83a0a.
This commit is contained in:
Michael Niedermayer 2025-12-02 04:36:47 +01:00 committed by michaelni
parent 9ed71a837b
commit 12e7d095b1
9 changed files with 131 additions and 131 deletions

View file

@ -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: