summaryrefslogtreecommitdiff
path: root/libavformat/ffm.c
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2007-02-22 13:23:38 +0000
committerAlex Beregszaszi <alex@rtfs.hu>2007-02-22 13:23:38 +0000
commit038a1243a2cc78373631665790c0e82f65cbcc1a (patch)
tree0bf8cf3631dcfce4737048c8148f36b75d8b53d7 /libavformat/ffm.c
parentb24daebf22762a6a68a750325c7b6a3e01d2b20e (diff)
codec_tag settable via VideoTag, and transmit codec_tag in ffm
Originally committed as revision 8071 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/ffm.c')
-rw-r--r--libavformat/ffm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/ffm.c b/libavformat/ffm.c
index cc7c6aac16..a2970ae423 100644
--- a/libavformat/ffm.c
+++ b/libavformat/ffm.c
@@ -201,6 +201,7 @@ static int ffm_write_header(AVFormatContext *s)
put_be32(pb, codec->nsse_weight);
put_be32(pb, codec->frame_skip_cmp);
put_be64(pb, av_dbl2int(codec->rc_buffer_aggressivity));
+ put_be32(pb, codec->codec_tag);
break;
case CODEC_TYPE_AUDIO:
put_be32(pb, codec->sample_rate);
@@ -534,6 +535,7 @@ static int ffm_read_header(AVFormatContext *s, AVFormatParameters *ap)
codec->nsse_weight = get_be32(pb);
codec->frame_skip_cmp = get_be32(pb);
codec->rc_buffer_aggressivity = av_int2dbl(get_be64(pb));
+ codec->codec_tag = get_be32(pb);
break;
case CODEC_TYPE_AUDIO:
codec->sample_rate = get_be32(pb);