summaryrefslogtreecommitdiff
path: root/formats
diff options
context:
space:
mode:
Diffstat (limited to 'formats')
-rw-r--r--formats/format_h263.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/formats/format_h263.c b/formats/format_h263.c
index 77c1229c3..b00ae0fb3 100644
--- a/formats/format_h263.c
+++ b/formats/format_h263.c
@@ -56,9 +56,8 @@ struct h263_desc {
static int h263_open(struct ast_filestream *s)
{
unsigned int ts;
- int res;
- if ((res = fread(&ts, 1, sizeof(ts), s->f)) < sizeof(ts)) {
+ if (fread(&ts, 1, sizeof(ts), s->f) < sizeof(ts)) {
ast_log(LOG_WARNING, "Empty file!\n");
return -1;
}