M2PA: fix encoding of MTP3 in M2Pa

This commit is contained in:
Harald Welte 2012-01-16 21:56:33 +01:00
parent 958c644834
commit eb8a1c1534
1 changed files with 1 additions and 1 deletions

View File

@ -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);