Mercurial > libavformat.hg
changeset 4818:6fd74de2b734 libavformat
override mov fourcc for pcm audio, this is safer when stream copying
author | bcoudurier |
---|---|
date | Tue, 07 Apr 2009 20:37:30 +0000 |
parents | adb4c38575d1 |
children | 8d2bbb402995 |
files | movenc.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/movenc.c Tue Apr 07 18:31:14 2009 +0000 +++ b/movenc.c Tue Apr 07 20:37:30 2009 +0000 @@ -602,7 +602,8 @@ tag = codec_get_tag(codec_3gp_tags, track->enc->codec_id); } else if (!tag || (track->enc->strict_std_compliance >= FF_COMPLIANCE_NORMAL && (tag == MKTAG('d','v','c','p') || - track->enc->codec_id == CODEC_ID_RAWVIDEO))) { + track->enc->codec_id == CODEC_ID_RAWVIDEO || + av_get_bits_per_sample(track->enc->codec_id)))) { // pcm audio if (track->enc->codec_id == CODEC_ID_DVVIDEO) { if (track->enc->height == 480) /* NTSC */ if (track->enc->pix_fmt == PIX_FMT_YUV422P) tag = MKTAG('d','v','5','n');