summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2012-01-16 21:56:33 +0100
committerHarald Welte <laforge@gnumonks.org>2012-01-16 21:56:33 +0100
commiteb8a1c1534d3033031d4cbf521aca9f5f569a4c8 (patch)
treedf754e189685a34b19a57c5323013e4b32d6b91f
parent958c6448344cc052445cd8017bb1cc19c9000191 (diff)
M2PA: fix encoding of MTP3 in M2Pa
-rw-r--r--src/m2pa_codec.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/m2pa_codec.erl b/src/m2pa_codec.erl
index 0165447..974ffd8 100644
--- a/src/m2pa_codec.erl
+++ b/src/m2pa_codec.erl
@@ -50,7 +50,7 @@ parse_msg(DataBin) when is_binary(DataBin) ->
mtp3 = Mtp3, parameters = Params}}.
encode_m2pa_msgt(?M2PA_CLASS_M2PA, ?M2PA_TYPE_USER, Mtp3, _Params) when is_binary(Mtp3) ->
- <<Mtp3/binary>>;
+ <<0:1, 0:7, Mtp3/binary>>;
encode_m2pa_msgt(?M2PA_CLASS_M2PA, ?M2PA_TYPE_USER, Mtp3, Params) when is_record(Mtp3, mtp3_msg) ->
Mtp3bin = mtp3_codec:encode_mtp3_msg(Mtp3),
encode_m2pa_msgt(?M2PA_CLASS_M2PA, ?M2PA_TYPE_USER, Mtp3bin, Params);