You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
mvformat/movenc: fix IMX
fixes Ticket3351 Tested-by: carl Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -918,11 +918,14 @@ static AVRational find_fps(AVFormatContext *s, AVStream *st)
|
|||||||
|
|
||||||
static int mov_get_mpeg2_xdcam_codec_tag(AVFormatContext *s, MOVTrack *track)
|
static int mov_get_mpeg2_xdcam_codec_tag(AVFormatContext *s, MOVTrack *track)
|
||||||
{
|
{
|
||||||
int tag = MKTAG('m', '2', 'v', '1'); //fallback tag
|
int tag = track->enc->codec_tag;
|
||||||
int interlaced = track->enc->field_order > AV_FIELD_PROGRESSIVE;
|
int interlaced = track->enc->field_order > AV_FIELD_PROGRESSIVE;
|
||||||
AVStream *st = track->st;
|
AVStream *st = track->st;
|
||||||
int rate = av_q2d(find_fps(s, st));
|
int rate = av_q2d(find_fps(s, st));
|
||||||
|
|
||||||
|
if (!tag)
|
||||||
|
tag = MKTAG('m', '2', 'v', '1'); //fallback tag
|
||||||
|
|
||||||
if (track->enc->pix_fmt == AV_PIX_FMT_YUV420P) {
|
if (track->enc->pix_fmt == AV_PIX_FMT_YUV420P) {
|
||||||
if (track->enc->width == 1280 && track->enc->height == 720) {
|
if (track->enc->width == 1280 && track->enc->height == 720) {
|
||||||
if (!interlaced) {
|
if (!interlaced) {
|
||||||
|
Reference in New Issue
Block a user