summaryrefslogtreecommitdiff
path: root/formats
diff options
context:
space:
mode:
Diffstat (limited to 'formats')
-rw-r--r--formats/format_h264.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/formats/format_h264.c b/formats/format_h264.c
index 25ba54a77..e12601045 100644
--- a/formats/format_h264.c
+++ b/formats/format_h264.c
@@ -49,8 +49,7 @@ struct h264_desc {
static int h264_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;
}