check_func_headers windows.h MapViewOfFile
check_func_headers windows.h VirtualAlloc
- check_header conio.h
check_header dlfcn.h
check_header dxva2api.h
+check_header libcrystalhd/libcrystalhd_if.h
check_header malloc.h
check_header poll.h
check_header sys/mman.h
print_sdp(output_files, nb_output_files);
}
- if (!using_stdin && verbose >= 0) {
+ if (!using_stdin) {
+ if(verbose >= 0)
+ #if HAVE_KBHIT
- fprintf(stderr, "Press [q] to stop encoding\n");
+ fprintf(stderr, "Press [q] to stop encoding\n");
+ #else
- fprintf(stderr, "Press ctrl-c to stop encoding\n");
++ fprintf(stderr, "Press ctrl-c to stop encoding\n");
+ #endif
url_set_interrupt_cb(decode_interrupt_cb);
}
term_init();
{
AVCodecContext *enc = s->streams[0]->codec;
int read, size = 0, toc, mode;
+ int64_t pos = avio_tell(s->pb);
- if (s->pb->eof_reached)
+ if (url_feof(s->pb))
{
return AVERROR(EIO);
}
*/
int64_t avio_size(AVIOContext *s);
- int av_url_read_fpause(AVIOContext *h, int pause);
- int64_t av_url_read_fseek(AVIOContext *h, int stream_index,
- int64_t timestamp, int flags);
-
+/**
+ * feof() equivalent for AVIOContext.
+ * @return non zero if and only if end of file
+ */
+int url_feof(AVIOContext *s);
+
/** @warning currently size is limited */
#ifdef __GNUC__
int avio_printf(AVIOContext *s, const char *fmt, ...) __attribute__ ((__format__ (__printf__, 2, 3)));
static void ff_id3v2_parse(AVFormatContext *s, int len, uint8_t version, uint8_t flags)
{
- int isv34, tlen, unsync;
+ int isv34, unsync;
+ unsigned tlen;
char tag[5];
- int64_t next;
+ int64_t next, end = avio_tell(s->pb) + len;
int taghdrlen;
- const char *reason;
+ const char *reason = NULL;
AVIOContext pb;
unsigned char *buffer = NULL;
int buffer_size = 0;