[FFmpeg-trac] #867(avformat:open): -tag:[v|a] doesn't force a fourcc

FFmpeg trac at avcodec.org
Mon Jan 2 23:51:06 CET 2012


#867: -tag:[v|a] doesn't force a fourcc
------------------------------------+------------------------------------
             Reporter:  dericed     |                    Owner:
                 Type:  defect      |                   Status:  open
             Priority:  normal      |                Component:  avformat
              Version:  git-master  |               Resolution:
             Keywords:  atag mov    |               Blocked By:
             Blocking:              |  Reproduced by developer:  1
Analyzed by developer:  0           |
------------------------------------+------------------------------------
Changes (by cehoyos):

 * keywords:  atag => atag mov
 * status:  new => open
 * component:  undetermined => avformat
 * reproduced:  0 => 1


Comment:

 (Where do you try to force a video tag?)

 Does the following work-around allow to produce correct files for you, no
 -tag needed?
 {{{
 diff --git a/libavformat/movenc.c b/libavformat/movenc.c
 index e5f0c4c..9635c92 100644
 --- a/libavformat/movenc.c
 +++ b/libavformat/movenc.c
 @@ -464,7 +464,7 @@ static int mov_write_audio_tag(AVIOContext *pb,
 MOVTrack *track)
      uint32_t tag = track->tag;

      if (track->mode == MODE_MOV) {
 -        if (mov_get_lpcm_flags(track->enc->codec_id))
 +        if (!tag && mov_get_lpcm_flags(track->enc->codec_id))
              tag = AV_RL32("lpcm");
          version = 2;
      }

 }}}

-- 
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/867#comment:1>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list