Commit 85de84c3 authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit '7cbc4cb4'

* commit '7cbc4cb4':
  fate: update the mmf reference
  mmf: Write metadata into an Optional Data chunk
  jpeg2000dec: Use correct printf length modifier for pointer differences

Conflicts:
	libavformat/mmf.c
	tests/ref/lavf/mmf
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents 23439cf9 7cbc4cb4
......@@ -1197,8 +1197,8 @@ static int jpeg2000_read_main_headers(Jpeg2000DecoderContext *s)
break;
default:
av_log(s->avctx, AV_LOG_ERROR,
"unsupported marker 0x%.4X at pos 0x%lX\n",
marker, (uint64_t)(s->buf - s->buf_start - 4));
"unsupported marker 0x%.4X at pos 0x%tX\n",
marker, s->buf - s->buf_start - 4);
s->buf += len - 2;
break;
}
......
......@@ -98,6 +98,7 @@ static int mmf_write_header(AVFormatContext *s)
avio_w8(pb, 0); /* status */
avio_w8(pb, 0); /* counts */
end_tag_be(pb, pos);
pos = ff_start_tag(pb, "OPDA");
avio_write(pb, version, strlen(version)); /* metadata ("ST:songtitle,VN:version,...") */
end_tag_be(pb, pos);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment