florian fa989adc11 multimedia/tvheadend: new package
Tvheadend is a TV streaming server for Linux supporting DVB-S, DVB-S2,
DVB-C, DVB-T, ATSC, IPTV, and Analog video (V4L) as input sources.

Signed-off-by: Alexey I. Froloff <raorn@raorn.name>
Signed-off-by: Florian Fainelli <florian@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/packages@34486 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-12-04 16:20:54 +00:00

17 lines
559 B
Diff

diff -urN tvheadend-3.2-orig/src/trap.c tvheadend-3.2/src/trap.c
--- tvheadend-3.2-orig/src/trap.c 2012-10-23 12:56:27.000000000 +0400
+++ tvheadend-3.2/src/trap.c 2012-10-24 21:01:34.254818786 +0400
@@ -243,9 +243,9 @@
char *m = malloc(st.st_size);
if(m != NULL) {
if(read(fd, m, st.st_size) == st.st_size) {
- SHA_Init(&binsum);
- SHA_Update(&binsum, (void *)m, st.st_size);
- SHA_Final(digest, &binsum);
+ SHA1_Init(&binsum);
+ SHA1_Update(&binsum, (void *)m, st.st_size);
+ SHA1_Final(digest, &binsum);
}
free(m);
}