fa0a8259fc
if 0 likely out of bounds write, we only have one scratch channel, don't write to a second if asked to do stereo (thanks, GCC 4.5.3!) convert lowercase min, max to uppercase - libstdc++6 doesn't approve of it. mostly using sed, because there's too many occurences. if we're not returning anything, use a void return type. fix likely issue with signed char - 0251 may be truncated, but the equivalent \xa9 won't be. don't store a return value if we're not going to check it. correct misleading indentation. Remove -fpermissive too, as it caused jperkin issues. I could build without removing -Werror, but I'll keep it since it's full of warnings. XXX do we want a security advisory for this, if it can be triggered?
43 lines
1.3 KiB
C
43 lines
1.3 KiB
C
$NetBSD: patch-lib_mp4_hinthnti.c,v 1.1 2017/05/06 18:12:00 maya Exp $
|
|
|
|
Fix return type. we're not returning anything.
|
|
|
|
--- lib/mp4/hinthnti.c.orig 2001-08-01 00:34:00.000000000 +0000
|
|
+++ lib/mp4/hinthnti.c
|
|
@@ -22,23 +22,23 @@
|
|
#include "quicktime.h"
|
|
|
|
|
|
-int quicktime_hint_hnti_init(quicktime_hint_hnti_t *hnti)
|
|
+void quicktime_hint_hnti_init(quicktime_hint_hnti_t *hnti)
|
|
{
|
|
quicktime_sdp_init(&(hnti->sdp));
|
|
}
|
|
|
|
-int quicktime_hint_hnti_delete(quicktime_hint_hnti_t *hnti)
|
|
+void quicktime_hint_hnti_delete(quicktime_hint_hnti_t *hnti)
|
|
{
|
|
quicktime_sdp_delete(&(hnti->sdp));
|
|
}
|
|
|
|
-int quicktime_hint_hnti_dump(quicktime_hint_hnti_t *hnti)
|
|
+void quicktime_hint_hnti_dump(quicktime_hint_hnti_t *hnti)
|
|
{
|
|
printf(" hnti\n");
|
|
quicktime_sdp_dump(&hnti->sdp);
|
|
}
|
|
|
|
-int quicktime_read_hint_hnti(quicktime_t *file, quicktime_hint_hnti_t *hnti, quicktime_atom_t *parent_atom)
|
|
+void quicktime_read_hint_hnti(quicktime_t *file, quicktime_hint_hnti_t *hnti, quicktime_atom_t *parent_atom)
|
|
{
|
|
quicktime_atom_t leaf_atom;
|
|
|
|
@@ -53,7 +53,7 @@ int quicktime_read_hint_hnti(quicktime_t
|
|
} while (quicktime_position(file) < parent_atom->end);
|
|
}
|
|
|
|
-int quicktime_write_hint_hnti(quicktime_t *file, quicktime_hint_hnti_t *hnti)
|
|
+void quicktime_write_hint_hnti(quicktime_t *file, quicktime_hint_hnti_t *hnti)
|
|
{
|
|
quicktime_atom_t atom;
|
|
|